blob: 2ee62cc87ca053e07b98fdab95b130f8a0438b3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
//TEST(compute):COMPARE_COMPUTE:-vk -shaderobj
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name gBuffer
RWStructuredBuffer<int> gBuffer;
int getX(int4 v) { return v.x; }
[numthreads(1, 1, 1)]
void computeMain(uint3 tid: SV_DispatchThreadID, uint GI: SV_GroupIndex)
{
if (GI< 1)
{
uint LdsCoord = GI;
uint a = gBuffer[LdsCoord];
LdsCoord += 1;
gBuffer[LdsCoord] = 1;
}
}
|