blob: 3fb84f72ded843cfa44bdba864da2580becb2c6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//TEST:CROSS_COMPILE: -profile lib_6_3 -entry main -stage compute -target spirv-assembly
[[vk::binding(0, 0)]]
Texture2DMS tex : register(t1);
RWStructuredBuffer<float4> outBuffer;
[numthreads(4, 4, 1)]
void main(uint3 groupId : SV_GroupID)
{
outBuffer[0] = tex.Load(int2(groupId.xy), 0);
}
|