blob: c190f5710ee1519d866da3876ee1fbd90a87ec37 (
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
25
|
//TEST:SIMPLE(filecheck=CHECK): -allow-glsl -stage compute -entry computeMain -target glsl -DSLANG
//TEST:SIMPLE(filecheck=CHECK): -allow-glsl -stage compute -entry computeMain -target spirv -DSLANG
//TEST:SIMPLE(filecheck=CHECK): -allow-glsl -stage compute -entry computeMain -target glsl -DGLSL
//TEST:SIMPLE(filecheck=CHECK): -allow-glsl -stage compute -entry computeMain -target spirv -DGLSL
// CHECK: error 31212
buffer MyBlockName
{
int result;
} outputBuffer;
#ifdef SLANG
[DerivativeGroupQuad]
[DerivativeGroupLinear]
#endif
#ifdef GLSL
layout(derivative_group_quadsNV) in;
layout(derivative_group_linearNV) in;
#endif
[numthreads(2, 2, 1)]
void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
{
outputBuffer.result = asint(ddx(1));
}
|