From 727245a67443447aeec6f7281e8e65834974fbd1 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 26 Jul 2023 12:23:32 -0700 Subject: Fix -fvk-u-shift not applying to RWStructuredBuffer on glsl output. (#3027) * Fix -fvk-u-shift not applying to RWStructuredBuffer on glsl output. * Add `transpose` to `ObjectToWorld4x3`. --------- Co-authored-by: Yong He --- tests/bindings/hlsl-to-vulkan-shift-rw-structured.hlsl | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/bindings/hlsl-to-vulkan-shift-rw-structured.hlsl (limited to 'tests') diff --git a/tests/bindings/hlsl-to-vulkan-shift-rw-structured.hlsl b/tests/bindings/hlsl-to-vulkan-shift-rw-structured.hlsl new file mode 100644 index 000000000..95e9ff3f7 --- /dev/null +++ b/tests/bindings/hlsl-to-vulkan-shift-rw-structured.hlsl @@ -0,0 +1,10 @@ +//TEST:SIMPLE(filecheck=CHECK):-target glsl -profile glsl_450 -entry MainCs -stage compute -fvk-b-shift 0 0 -fvk-s-shift 14 0 -fvk-t-shift 30 0 -fvk-u-shift 158 0 + +// CHECK: layout(std430, binding = 158) buffer + +RWStructuredBuffer g_OutputCullBits; +[numthreads(32, 1, 1)] +void MainCs(uint3 vThreadId : SV_DispatchThreadID, uint3 vGroupThreadId : SV_GroupThreadID, uint3 vGroupId : SV_GroupID) +{ + g_OutputCullBits[vThreadId.x] = 0; +} \ No newline at end of file -- cgit v1.2.3