diff options
| author | Yong He <yonghe@outlook.com> | 2024-03-12 19:31:25 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-12 19:31:25 -0700 |
| commit | 6f7c8271710b43349d34b8f7569ceb6957400548 (patch) | |
| tree | 288c18bb4b9a2cf32de7e400c1fe8b56385b727e /tests/front-end | |
| parent | eef7e208bf7436a4f111a9290f37204e3220d82b (diff) | |
Fix `sessionDesc.defaultMatrixLayoutMode` being ineffective. (#3753)
* Fix `sessionDesc.defaultMatrixLayoutMode` being ineffective.
* Fix matrix layout in buffer pointer.
* Attempt to fix.
* Fix buffer element type lowering for buffer pointers.
* Add comment.
* Fix test.
* Fix member lookup in `Ref<T>`.
* Fix validation error.
* Enhance test.
Diffstat (limited to 'tests/front-end')
| -rw-r--r-- | tests/front-end/typedef-matrix.slang | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/front-end/typedef-matrix.slang b/tests/front-end/typedef-matrix.slang new file mode 100644 index 000000000..81188f806 --- /dev/null +++ b/tests/front-end/typedef-matrix.slang @@ -0,0 +1,13 @@ +//TEST:SIMPLE(filecheck=CHECK): -target spirv -emit-spirv-directly -entry main -stage compute -matrix-layout-row-major + +// CHECK: ColMajor + +typedef column_major float3x4 Mat; + +RWStructuredBuffer<float> output; + +[numthreads(1,1,1)] +void main(uniform Mat m) +{ + output[0] = m[0][0]; +}
\ No newline at end of file |
