summaryrefslogtreecommitdiffstats
path: root/tests/bugs/gh-4200.slang
blob: e9ea1d34ddb86a389f3273f6bc9ef4c62c8540e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//TEST:SIMPLE(filecheck=CHECK_SPV): -target spirv -emit-spirv-directly -entry computeMain -stage compute
//TEST:SIMPLE(filecheck=CHECK_HLSL): -target hlsl -entry computeMain -stage compute

//CHECK_SPV: OpEntryPoint
//CHECK_HLSL: computeMain

Texture2DMS<uint4> Src : register(t1);
RWBuffer<uint4>    Dst : register(u2);

[shader("compute")]
[numthreads(1, 1, 1)]
void computeMain()
{
// CHECK_SPV: Sample %int_0
// CHECK_HLSL: [{{.*}}1{{.*}}]
    Dst[0] = Src[int2(1)];
}