summaryrefslogtreecommitdiff
path: root/tests/bugs/vk-structured-buffer-binding.hlsl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/vk-structured-buffer-binding.hlsl')
-rw-r--r--tests/bugs/vk-structured-buffer-binding.hlsl12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/bugs/vk-structured-buffer-binding.hlsl b/tests/bugs/vk-structured-buffer-binding.hlsl
new file mode 100644
index 000000000..cdfeb19ab
--- /dev/null
+++ b/tests/bugs/vk-structured-buffer-binding.hlsl
@@ -0,0 +1,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)];
+} \ No newline at end of file