blob: f8859dfd3d6ca5aafcc830236a4c5c7ecd8ef6b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//TEST:SIMPLE(filecheck=METAL): -target metal
//TEST(compute, metal):COMPARE_COMPUTE(filecheck-buffer=BUF):-metal
//TEST(compute, vulkan):COMPARE_COMPUTE(filecheck-buffer=BUF):-vk
// METAL: (matrix<float,int(4),int(4)>{{.*}}(0) -
//TEST_INPUT: ubuffer(data=[0 0 0 0], stride=4):out,name output
RWStructuredBuffer<float4> output;
[numthreads(1,1,1)]
void computeMain(uniform float4x4 m)
{
// This test checks for negative zero, so we need to do a hex comparison
// instead of a float comparison.
// BUF-COUNT-4: 80000000
output[0] = (-m)[0];
}
|