blob: b2ac3e0ac73e377850c4b6a58b6567f12977b6bb (
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
26
|
//TEST:SIMPLE(filecheck=CHECK): -allow-glsl -stage compute -entry computeMain -target glsl -DLINEAR_SLANG
//TEST:SIMPLE(filecheck=CHECK): -allow-glsl -stage compute -entry computeMain -target spirv -DLINEAR_SLANG
//TEST:SIMPLE(filecheck=CHECK): -allow-glsl -stage compute -entry computeMain -target glsl -DLINEAR_GLSL
//TEST:SIMPLE(filecheck=CHECK): -allow-glsl -stage compute -entry computeMain -target spirv -DLINEAR_GLSL
// CHECK: error 31211
buffer MyBlockName
{
int result;
} outputBuffer;
#ifdef LINEAR_SLANG
[DerivativeGroupLinear]
[numthreads(1, 3, 1)]
#endif
#ifdef LINEAR_GLSL
layout(derivative_group_linearNV) in;
[numthreads(1, 3, 1)]
#endif
void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
{
outputBuffer.result = asint(ddx(1));
}
|