summaryrefslogtreecommitdiffstats
path: root/tests/bugs/vk-structured-buffer-binding.hlsl.glsl
blob: 7298ea5948b7d3e87e1a39965b106b25c8e3cfcf (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
// vk-structured-buffer-binding.hlsl.glsl
//TEST_IGNORE_FILE:

#version 450

#define gDoneGroups gDoneGroups_0
#define uv _S3
#define SV_Target _S2

layout(std430, binding = 3, set = 4)
buffer _S1
{
    uint _data[];
} gDoneGroups;

layout(location = 0)
out vec4 SV_Target;

layout(location = 0)
in vec3 uv;

void main()
{
    SV_Target = vec4(gDoneGroups._data[uint(int(uv.z))]);
    return;
}