yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Yong HeMore control flow simplifications. (#2673)bd6306cda

master
711 B29 linesraw
1//TEST_IGNORE_FILE:
2#version 460
3#extension GL_EXT_ray_tracing : require
4#extension GL_ARB_sparse_texture_clamp : require
5layout(row_major) uniform;
6layout(row_major) buffer;
7
8layout(binding = 0)
9uniform texture2DArray t2D_0;
10
11layout(binding = 1)
12uniform sampler samplerState_0;
13
14struct ShadowRay_0
15{
16    float hitDistance_0;
17};
18
19rayPayloadInEXT ShadowRay_0 _S1;
20
21void main()
22{
23    const vec2 _S2 = vec2(0.0, 0.0);
24
25    vec4 val_0 = (textureGradOffsetClampARB(sampler2DArray(t2D_0,samplerState_0), (vec3(_S1.hitDistance_0 * 0.20000000298023223877, _S1.hitDistance_0 * 0.30000001192092895508, 0.20000000298023223877)), (_S2), (_S2), (ivec2(0)), (0.5)));
26
27    _S1.hitDistance_0 = dot(val_0, val_0);
28    return;
29}