diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/metal/matrix-negate.slang | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/metal/matrix-negate.slang b/tests/metal/matrix-negate.slang new file mode 100644 index 000000000..f6ae6816f --- /dev/null +++ b/tests/metal/matrix-negate.slang @@ -0,0 +1,11 @@ +//TEST:SIMPLE(filecheck=CHECK): -target metal + +// CHECK: (matrix<float,int(4),int(4)>{{.*}}(0) - + +RWStructuredBuffer<float4> output; + +[numthreads(1,1,1)] +void computeMain(uniform float4x4 m) +{ + output[0] = (-m)[0]; +}
\ No newline at end of file |
