From 83514bd25160a9af91abc1b9acd7e44657447526 Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 21 Sep 2020 08:27:10 -0700 Subject: Enable all dynamic dispatch tests on CUDA. (#1552) * Enable all dynamic dispatch tests on CUDA. * Fix expected cross-compile test results. --- tests/vkray/intersection.slang.glsl | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'tests/vkray') diff --git a/tests/vkray/intersection.slang.glsl b/tests/vkray/intersection.slang.glsl index 09d7e63a5..66846d993 100644 --- a/tests/vkray/intersection.slang.glsl +++ b/tests/vkray/intersection.slang.glsl @@ -9,12 +9,10 @@ #define tmp_direction _S4 #define tmp_tmin _S5 #define tmp_tmax _S6 -#define tmp_ray _S7 -#define tmp_sphere _S8 -#define tmp_thit _S9 -#define tmp_hitattrs _S10 -#define tmp_dithit _S11 -#define tmp_reportresult _S12 +#define tmp_thit _S7 +#define tmp_hitattrs _S8 +#define tmp_dithit _S9 +#define tmp_reportresult _S10 struct Sphere_0 { @@ -83,13 +81,9 @@ void main() float tmp_tmax = gl_RayTmaxNV; ray_1.TMax_0 = tmp_tmax; - RayDesc_0 tmp_ray = ray_1; - - Sphere_0 tmp_sphere = U_0._data.gSphere_0; - float tmp_thit; SphereHitAttributes_0 tmp_hitattrs; - bool tmp_dithit = rayIntersectsSphere_0(tmp_ray, tmp_sphere, tmp_thit, tmp_hitattrs); + bool tmp_dithit = rayIntersectsSphere_0(ray_1, U_0._data.gSphere_0, tmp_thit, tmp_hitattrs); float tHit_2 = tmp_thit; SphereHitAttributes_0 attrs_1 = tmp_hitattrs; -- cgit v1.2.3