blob: 4bd6e3be09c019f6596a0ebd51860cfb40ad7e76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//TEST:SIMPLE(filecheck=METAL): -stage compute -entry computeMain -target metal -DEMIT_SOURCE
// TEST_INPUT: RWTexture2D(size=4, content = zero, sampleCount=2):name texMS
Texture2DMS<float4> texMS;
// TEST_INPUT: RWTexture2D(size=4, content = zero):name output
RWTexture2D<float4> output;
[numthreads(1, 1, 1)]
void computeMain()
{
int2 location = int2(0, 0);
uint sampleIndex = 0;
// METAL: {{.*}}access::read{{.*}}
float4 v = texMS.Load(location, sampleIndex);
output[location] = v;
}
|