blob: 6976f1303e5ad2587f35ecd6b19a788bafa2dcfb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//TEST:SIMPLE(filecheck=CHECK): -stage compute -entry computeMain -target spirv
//CHECK: error 30623
interface Bug
{
static const int badVar = 0;
}
RWStructuredBuffer<int> b;
[numthreads(1, 1, 1)]
void computeMain(uint3 dispatchThreadID: SV_DispatchThreadID)
{
b[0] = Bug::badVar;
}
|