blob: 33a002175f9879022f67ac356c4d1591c20d279f (
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
27
28
29
|
//TEST:SIMPLE(filecheck=PASS): -target glsl -entry main -stage compute -allow-glsl
//TEST:SIMPLE(filecheck=PASS): -target glsl -entry main -stage compute -allow-glsl -capability shader5_sm_5_0
//TEST:SIMPLE(filecheck=PASS): -target glsl -entry main -stage compute -allow-glsl -profile sm_6_0
//TEST:SIMPLE(filecheck=WARN): -target glsl -entry main -stage compute -allow-glsl -capability GLSL_130
//TEST:SIMPLE(filecheck=ERROR): -target glsl -entry main -stage compute -allow-glsl -capability GLSL_130 -restrictive-capability-check
// CHECK_IGNORE_CAPS-NOT: error 41012
// Check that a non-static member method implictly requires capabilities
// defined in ThisType.
//PASS-NOT: warning 41012
//PASS-NOT: error 41012
//WARN: warning 41012
//WARN-NOT: error 41012
//ERROR-NOT: warning 41012
//ERROR: error 41012
buffer MyBlockName
{
int data;
} inputBuffer;
[numthreads(1,1,1)]
void main()
{
inputBuffer.data = firstbithigh(1);
}
|