blob: 401009eda38e423e996cf0662da7cdf4d4199e7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
//DISABLE_TEST:SIMPLE(filecheck=HLSL): -target hlsl -stage compute -entry computeMain -zero-initialize
//DISABLE_TEST:SIMPLE(filecheck=GLSL): -target glsl -stage compute -entry computeMain -zero-initialize
RWStructuredBuffer<uint> outputBuffer;
// GLSL-NOT: error 30623
// HLSL-NOT: error 30623
// GLSL-NOT: globalMem{{.*}} =
// HLSL-NOT: globalMem{{.*}} =
groupshared uint globalMem;
[numthreads(1, 1, 1)]
void computeMain(int3 dispatchThreadID: SV_DispatchThreadID)
{
outputBuffer[0] = globalMem;
}
|