summaryrefslogtreecommitdiff
path: root/tests/bugs/vk-structured-buffer-binding.hlsl
blob: cdfeb19ab53b0537ebd9d71a9596162e548a8b15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//TEST:SIMPLE: -profile ps_4_0 -entry main -target glsl
///////TEST:REFLECTION:-profile ps_4_0 -target spirv

[[vk::binding(3, 4)]]
RWStructuredBuffer<uint> gDoneGroups : register(u3);

float4 main(
    float3 uv : UV)
    : SV_Target
{
    return gDoneGroups[int(uv.z)]; 
}