blob: 0dca8dca9b1f0e6d2313bc4db1df51312166d8c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
//TEST:SIMPLE(filecheck=CHECK): -allow-glsl -stage compute -entry computeMain -target glsl -DQUAD_SLANG
//TEST:SIMPLE(filecheck=CHECK): -allow-glsl -stage compute -entry computeMain -target spirv -DQUAD_SLANG
//TEST:SIMPLE(filecheck=CHECK): -allow-glsl -stage compute -entry computeMain -target glsl -DQUAD_GLSL
//TEST:SIMPLE(filecheck=CHECK): -allow-glsl -stage compute -entry computeMain -target spirv -DQUAD_GLSL
// CHECK: error 31210
buffer MyBlockName
{
int result;
} outputBuffer;
#ifdef QUAD_SLANG
[DerivativeGroupQuad]
[numthreads(3, 3, 1)]
#endif
#ifdef QUAD_GLSL
layout(derivative_group_quadsNV) in;
[numthreads(3, 3, 1)]
#endif
void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
{
outputBuffer.result = asint(ddx(1));
}
|