blob: b8104b350098308796bd94fb8dc7b5db920a3af4 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
//TEST:SIMPLE(filecheck=CHECK): -target hlsl -entry computeMain -stage compute
// Test if InheritanceDecl fail to conform to parent capabilities
// mismatch of target abstract atoms
[require(hlsl)]
interface IFoo0
{
}
[require(hlsl)]
[require(spirv)]
// CHECK-DAG: ([[# @LINE+1]]): error 36108{{.*}}spirv
struct Foo0 : IFoo0
{
}
// mismatch of target abstract atoms
[require(hlsl)]
[require(spirv)]
interface IFoo1
{
}
[require(hlsl)]
// CHECK-DAG: ([[# @LINE+1]]): error 36118{{.*}}spirv
struct Foo1 : IFoo1
{
}
// subtype is superset
[require(sm_4_0)]
interface IFoo2
{
}
[require(sm_5_0)]
// CHECK-DAG: ([[# @LINE+1]]): error 36104{{.*}}sm_5_0
struct Foo2 : IFoo2
{
}
// subtype is subset, no error
[require(sm_5_0)]
interface IFoo3
{
}
[require(sm_4_0)]
struct Foo3 : IFoo3
{
}
// mismatch of stage abstract atoms
[require(hlsl, compute)]
interface IFoo4
{
}
[require(hlsl, fragment)]
// CHECK-DAG: ([[# @LINE+1]]): error 36118{{.*}}compute
struct Foo4 : IFoo4
{
}
// mismatch of stage abstract atoms
[require(fragment)]
[require(vertex)]
interface IFoo5
{
}
[require(fragment)]
// CHECK-DAG: ([[# @LINE+1]]): error 36118{{.*}}vertex
struct Foo5 : IFoo5
{
}
[require(hlsl)]
[numthreads(1,1,1)]
void computeMain()
{
}
|