summaryrefslogtreecommitdiff
path: root/tests/metal/matrix-negate.slang
blob: f6ae6816f8f8c156905e961bd4a3d530826bd31a (plain)
1
2
3
4
5
6
7
8
9
10
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];
}