File tree Expand file tree Collapse file tree 8 files changed +20
-8
lines changed
tools/clang/test/CodeGenSPIRV_Lit Expand file tree Collapse file tree 8 files changed +20
-8
lines changed Original file line number Diff line number Diff line change 18
18
// CHECK: OpDecorate [[m:%[0-9]+]] BuiltIn RayGeometryIndexKHR
19
19
// CHECK: OpDecorate [[n:%[0-9]+]] BuiltIn RayTmaxNV
20
20
21
+ // CHECK: %accelerationStructureNV = OpTypeAccelerationStructureKHR
22
+ // CHECK-NOT: OpTypeAccelerationStructureKHR
23
+
21
24
// CHECK: OpTypePointer IncomingRayPayloadNV %Payload
22
25
struct Payload
23
26
{
@@ -34,7 +37,6 @@ struct Attribute
34
37
float2 bary;
35
38
};
36
39
37
- // CHECK-COUNT-1: [[rstype:%[0-9]+]] = OpTypeAccelerationStructureNV
38
40
RaytracingAccelerationStructure rs;
39
41
40
42
[shader ("closesthit" )]
Original file line number Diff line number Diff line change 21
21
// CHECK: OpDecorate [[m:%[0-9]+]] BuiltIn RayGeometryIndexKHR
22
22
// CHECK: OpDecorate [[n:%[0-9]+]] BuiltIn RayTmaxNV
23
23
24
+ // CHECK: %accelerationStructureNV = OpTypeAccelerationStructureKHR
25
+ // CHECK-NOT: OpTypeAccelerationStructureKHR
26
+
24
27
// CHECK: OpTypePointer IncomingRayPayloadNV %Payload
25
28
struct Payload
26
29
{
@@ -37,7 +40,6 @@ struct Attribute
37
40
float2 bary;
38
41
};
39
42
40
- // CHECK-COUNT-1: [[rstype:%[0-9]+]] = OpTypeAccelerationStructureNV
41
43
RaytracingAccelerationStructure rs;
42
44
43
45
[shader ("closesthit" )]
Original file line number Diff line number Diff line change 17
17
// CHECK: OpDecorate [[l:%[0-9]+]] BuiltIn HitKindNV
18
18
// CHECK: OpDecorate [[m:%[0-9]+]] BuiltIn HitTNV
19
19
20
+ // CHECK: %accelerationStructureNV = OpTypeAccelerationStructureKHR
21
+ // CHECK-NOT: OpTypeAccelerationStructureKHR
22
+
20
23
// CHECK: OpTypePointer IncomingRayPayloadNV %Payload
21
24
struct Payload
22
25
{
@@ -28,7 +31,6 @@ struct Attribute
28
31
float2 bary;
29
32
};
30
33
31
- // CHECK-COUNT-1: [[rstype:%[0-9]+]] = OpTypeAccelerationStructureNV
32
34
RaytracingAccelerationStructure rs;
33
35
34
36
[shader ("anyhit" )]
Original file line number Diff line number Diff line change 17
17
// CHECK: OpDecorate [[l:%[0-9]+]] BuiltIn HitKindNV
18
18
// CHECK: OpDecorate [[m:%[0-9]+]] BuiltIn HitTNV
19
19
20
+ // CHECK: %accelerationStructureNV = OpTypeAccelerationStructureKHR
21
+ // CHECK-NOT: OpTypeAccelerationStructureKHR
22
+
20
23
// CHECK: OpTypePointer IncomingRayPayloadNV %Payload
21
24
struct Payload
22
25
{
@@ -28,7 +31,6 @@ struct Attribute
28
31
float2 bary;
29
32
};
30
33
31
- // CHECK-COUNT-1: [[rstype:%[0-9]+]] = OpTypeAccelerationStructureNV
32
34
RaytracingAccelerationStructure rs;
33
35
34
36
[shader ("closesthit" )]
Original file line number Diff line number Diff line change 4
4
// CHECK: OpDecorate [[a:%[0-9]+]] BuiltIn LaunchIdNV
5
5
// CHECK: OpDecorate [[b:%[0-9]+]] BuiltIn LaunchSizeNV
6
6
7
- // CHECK-COUNT-1: [[rstype:%[0-9]+]] = OpTypeAccelerationStructureNV
7
+ // CHECK: %accelerationStructureNV = OpTypeAccelerationStructureKHR
8
+ // CHECK-NOT: OpTypeAccelerationStructureKHR
8
9
RaytracingAccelerationStructure rs;
9
10
10
11
struct Payload
Original file line number Diff line number Diff line change 28
28
// CHECK: OpDecorate [[k:%[0-9]+]] BuiltIn WorldToObjectNV
29
29
// CHECK: OpDecorate [[l:%[0-9]+]] BuiltIn HitKindNV
30
30
31
+ // CHECK: %accelerationStructureNV = OpTypeAccelerationStructureKHR
32
+ // CHECK-NOT: OpTypeAccelerationStructureKHR
31
33
32
34
// CHECK: OpTypePointer CallableDataNV %CallData
33
35
struct CallData
@@ -44,7 +46,6 @@ struct Attribute
44
46
{
45
47
float2 bary;
46
48
};
47
- // CHECK-COUNT-1: [[rstype:%[0-9]+]] = OpTypeAccelerationStructureNV
48
49
RaytracingAccelerationStructure rs;
49
50
50
51
Original file line number Diff line number Diff line change 4
4
// CHECK: OpDecorate [[a:%[0-9]+]] BuiltIn LaunchIdNV
5
5
// CHECK: OpDecorate [[b:%[0-9]+]] BuiltIn LaunchSizeNV
6
6
7
- // CHECK-COUNT-1: [[rstype:%[0-9]+]] = OpTypeAccelerationStructureNV
7
+ // CHECK: %accelerationStructureNV = OpTypeAccelerationStructureKHR
8
+ // CHECK-NOT: OpTypeAccelerationStructureKHR
8
9
RaytracingAccelerationStructure rs;
9
10
10
11
struct Payload
Original file line number Diff line number Diff line change 4
4
// CHECK: OpExtension "SPV_KHR_ray_tracing"
5
5
// CHECK: OpExtension "SPV_KHR_ray_query"
6
6
7
- // CHECK-COUNT-1: [[rs:%\d+]] = OpTypeAccelerationStructureNV
7
+ // CHECK: %accelerationStructureNV = OpTypeAccelerationStructureKHR
8
+ // CHECK-NOT: OpTypeAccelerationStructureKHR
8
9
RaytracingAccelerationStructure AccelerationStructure : register (t0);
9
10
RayDesc MakeRayDesc ()
10
11
{
You can’t perform that action at this time.
0 commit comments