blob: f6ee30339d9111604b6b275a4aad3d3228b3f375 (
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.
[require(hlsl)]
struct Type
{
int member;
[require(glsl)]
[mutating]
// CHECK: ([[# @LINE+1]]): error 36108:
void f()
{
}
[require(glsl)]
// CHECK-NOT: ([[# @LINE+1]]): error 36108:
static void f1()
{
}
}
void main()
{}
|