diff options
| author | Sai Praveen Bangaru <31557731+saipraveenb25@users.noreply.github.com> | 2023-04-26 15:46:24 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-26 15:46:24 -0400 |
| commit | e1940e53c0f76e91a2616693b261beb9190015be (patch) | |
| tree | 2ef14f1e81eb1cf0b003cf93102afdbd542f4750 /tests/vkray | |
| parent | a1739e87b5fb90b0a39c583f8d2468f851869c9f (diff) | |
For C-like targets, emit resource declarations before other globals (#2843)
* For C-like targets, emit resource declarations before other globals
* Remove unused tests
Diffstat (limited to 'tests/vkray')
| -rw-r--r-- | tests/vkray/raygen.slang.glsl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/vkray/raygen.slang.glsl b/tests/vkray/raygen.slang.glsl index 5c609f795..8bc9356a2 100644 --- a/tests/vkray/raygen.slang.glsl +++ b/tests/vkray/raygen.slang.glsl @@ -4,7 +4,7 @@ layout(row_major) uniform; layout(row_major) buffer; struct ReflectionRay_0 { - float color_0; + float color_1; }; layout(location = 0) @@ -31,7 +31,7 @@ uniform texture2D samplerNormal_0; struct Light_0 { vec4 position_0; - vec4 color_1; + vec4 color_0; }; struct Uniforms_0 @@ -121,11 +121,11 @@ void main() { atten_0 = _S11; } - vec3 color_2 = ubo_0._data.light_0.color_1.xyz * saturate_0(dot(N_0, L_0)) * atten_0; + vec3 color_2 = ubo_0._data.light_0.color_0.xyz * saturate_0(dot(N_0, L_0)) * atten_0; ReflectionRay_0 reflectionRay_0; TraceRay_1(as_0, 1U, 255U, 0U, 0U, 2U, ray_0, reflectionRay_0); - vec3 color_3 = color_2 + reflectionRay_0.color_0; + vec3 color_3 = color_2 + reflectionRay_0.color_1; uvec3 _S12 = ((gl_LaunchIDEXT)); imageStore((outputImage_0), ivec2((uvec2(ivec2(_S12.xy)))), vec4(color_3, 1.0)); return; |
