blob: fce1f78ac5a89ba073fa32ffc0c6db0bbc9fc72b (
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): -target spirv -emit-spirv-directly -entry main -stage compute
// 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()
{}
|