yum-mirror/slang

Making it easier to work with shaders

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

Yong HeUnify stdlib `Texture` types into one generic type. (#3327)4c78efd0c

master
575 B39 linesraw
1//TEST_IGNORE_FILE:
2
3#version 450
4layout(row_major) uniform;
5layout(row_major) buffer;
6
7layout(rgba32f)
8layout(binding = 0)
9uniform image2D t_0;
10
11void writeColor_0(vec3 v_0)
12{
13    const uvec2 _S1 = uvec2(0U, 0U);
14
15    vec4 _S2 = (imageLoad((t_0), ivec2((_S1))));
16
17    vec3 _S3 = _S2.xyz + v_0;
18
19    ivec2 _S4 = ivec2(_S1);
20
21    vec4 _S5 = imageLoad(t_0,_S4);
22
23    vec4 _S6 = _S5;
24    _S6.xyz = _S3;
25
26    imageStore(t_0,_S4,_S6);
27    return;
28}
29
30
31layout(location = 0)
32out vec4 _S7;
33
34void main()
35{
36    writeColor_0(vec3(1.00000000000000000000));
37    _S7 = vec4(0);
38    return;
39}