From 0f67d92df9ca1f528b7a7fc8a8712aaea56f7115 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Fri, 16 Nov 2018 16:04:56 -0500 Subject: Bug fix - vk::binding on structured buffers (#720) * Fix output of binding of structured buffer on GLSL. * Added test to check vk binding is coming thru. * Fix closethit binding inconsistency. --- tests/bugs/vk-structured-buffer-binding.hlsl | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/bugs/vk-structured-buffer-binding.hlsl (limited to 'tests/bugs/vk-structured-buffer-binding.hlsl') 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 gDoneGroups : register(u3); + +float4 main( + float3 uv : UV) + : SV_Target +{ + return gDoneGroups[int(uv.z)]; +} \ No newline at end of file -- cgit v1.2.3