From 9c9e1f701242b59dead94426a25f2ad5d3bcf66d Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 16 Dec 2024 22:10:10 -0800 Subject: Support matrix negation in metal backend. (#5891) --- tests/metal/matrix-negate.slang | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/metal/matrix-negate.slang (limited to 'tests') 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{{.*}}(0) - + +RWStructuredBuffer output; + +[numthreads(1,1,1)] +void computeMain(uniform float4x4 m) +{ + output[0] = (-m)[0]; +} \ No newline at end of file -- cgit v1.2.3