summaryrefslogtreecommitdiffstats
path: root/tests/bugs/vk-image-write.slang.glsl
blob: 7145c0e08e3ba4f8e84a4d27c4080b4ec6c58aba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//TEST_IGNORE_FILE:

#version 450
layout(row_major) uniform;
layout(row_major) buffer;

layout(rgba32f)
layout(binding = 0)
uniform image2D t_0;

void writeColor_0(vec3 v_0)
{
    const uvec2 _S1 = uvec2(0U, 0U);

    vec4 _S2 = (imageLoad((t_0), ivec2((_S1))));

    vec3 _S3 = _S2.xyz + v_0;

    ivec2 _S4 = ivec2(_S1);

    vec4 _S5 = imageLoad(t_0,_S4);

    vec4 _S6 = _S5;
    _S6.xyz = _S3;

    imageStore(t_0,_S4,_S6);
    return;
}


layout(location = 0)
out vec4 _S7;

void main()
{
    writeColor_0(vec3(1.00000000000000000000));
    _S7 = vec4(0);
    return;
}