diff options
Diffstat (limited to 'tests/vkray')
| -rw-r--r-- | tests/vkray/anyhit.slang.glsl | 4 | ||||
| -rw-r--r-- | tests/vkray/closesthit.slang.glsl | 19 |
2 files changed, 9 insertions, 14 deletions
diff --git a/tests/vkray/anyhit.slang.glsl b/tests/vkray/anyhit.slang.glsl index 07789cdbd..622080399 100644 --- a/tests/vkray/anyhit.slang.glsl +++ b/tests/vkray/anyhit.slang.glsl @@ -33,13 +33,11 @@ rayPayloadInNV ShadowRay_0 _S3; void main() { - SphereHitAttributes_0 _S4 = _S2; - if(bool(gParams_0._data.mode_0)) { float val_0 = textureLod( sampler2D(gParams_alphaMap_0, gParams_sampler_0), - _S4.normal_0.xy, + _S2.normal_0.xy, float(0)).x; diff --git a/tests/vkray/closesthit.slang.glsl b/tests/vkray/closesthit.slang.glsl index 79fd3afbe..46c5ea636 100644 --- a/tests/vkray/closesthit.slang.glsl +++ b/tests/vkray/closesthit.slang.glsl @@ -6,15 +6,14 @@ #define tmp_colors _S2 #define tmp_hitattrs _S3 #define tmp_payload _S4 -#define tmp_localattrs _S5 -#define tmp_customidx _S6 -#define tmp_instanceid _S7 -#define tmp_add_0 _S8 -#define tmp_primid _S9 -#define tmp_add_1 _S10 -#define tmp_hitkind _S11 -#define tmp_hitt _S12 -#define tmp_tmin _S13 +#define tmp_customidx _S5 +#define tmp_instanceid _S6 +#define tmp_add_0 _S7 +#define tmp_primid _S8 +#define tmp_add_1 _S9 +#define tmp_hitkind _S10 +#define tmp_hitt _S11 +#define tmp_tmin _S12 struct SLANG_ParameterGroup_ShaderRecord_0 { @@ -49,8 +48,6 @@ rayPayloadInNV ReflectionRay_0 tmp_payload; void main() { - BuiltInTriangleIntersectionAttributes_0 tmp_localattrs = tmp_hitattrs; - uint tmp_customidx = gl_InstanceCustomIndexNV; uint tmp_instanceid = gl_InstanceID; |
