blob: eda9a86be0922a199582754c4570fea04ecc1f8e (
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
|
//TEST:SIMPLE(filecheck=CHECK): -target spirv -emit-spirv-directly -entry main -stage compute
//TEST:SIMPLE(filecheck=CHECK_IGNORE_CAPS): -target spirv -emit-spirv-directly -entry main -stage compute -ignore-capabilities
// CHECK_IGNORE_CAPS-NOT: error 36108
// Check that a non-static member method implictly requires capabilities
// defined in ThisType.
//CHECK: error 36108: {{.*}} 'glsl'.
//CHECK: note: see using of 'Type'
[require(hlsl)]
struct Type
{
int member;
[require(glsl)]
[mutating]
void f()
{
}
[require(glsl)]
static void f1()
{
}
}
void main()
{}
|