diff options
| author | Yong He <yonghe@outlook.com> | 2023-07-26 12:23:32 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-26 12:23:32 -0700 |
| commit | 727245a67443447aeec6f7281e8e65834974fbd1 (patch) | |
| tree | 787e866f52c1b8424a014cd560b0844f0fe6d8a0 /tests | |
| parent | 7b48b24baac066c3c54aaad3f36fb5979fc18ed1 (diff) | |
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 <yhe@nvidia.com>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/bindings/hlsl-to-vulkan-shift-rw-structured.hlsl | 10 |
1 files changed, 10 insertions, 0 deletions
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<uint> 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 |
