diff options
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 |
