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 1818// CHECK: OpDecorate [[m:%[0-9]+]] BuiltIn RayGeometryIndexKHR
1919// CHECK: OpDecorate [[n:%[0-9]+]] BuiltIn RayTmaxNV
2020
21+ // CHECK: %accelerationStructureNV = OpTypeAccelerationStructureKHR
22+ // CHECK-NOT: OpTypeAccelerationStructureKHR
23+
2124// CHECK: OpTypePointer IncomingRayPayloadNV %Payload
2225struct Payload
2326{
@@ -34,7 +37,6 @@ struct Attribute
3437 float2 bary;
3538};
3639
37- // CHECK-COUNT-1: [[rstype:%[0-9]+]] = OpTypeAccelerationStructureNV
3840RaytracingAccelerationStructure rs;
3941
4042[shader ("closesthit" )]
Original file line number Diff line number Diff line change 2121// CHECK: OpDecorate [[m:%[0-9]+]] BuiltIn RayGeometryIndexKHR
2222// CHECK: OpDecorate [[n:%[0-9]+]] BuiltIn RayTmaxNV
2323
24+ // CHECK: %accelerationStructureNV = OpTypeAccelerationStructureKHR
25+ // CHECK-NOT: OpTypeAccelerationStructureKHR
26+
2427// CHECK: OpTypePointer IncomingRayPayloadNV %Payload
2528struct Payload
2629{
@@ -37,7 +40,6 @@ struct Attribute
3740 float2 bary;
3841};
3942
40- // CHECK-COUNT-1: [[rstype:%[0-9]+]] = OpTypeAccelerationStructureNV
4143RaytracingAccelerationStructure rs;
4244
4345[shader ("closesthit" )]
Original file line number Diff line number Diff line change 1717// CHECK: OpDecorate [[l:%[0-9]+]] BuiltIn HitKindNV
1818// CHECK: OpDecorate [[m:%[0-9]+]] BuiltIn HitTNV
1919
20+ // CHECK: %accelerationStructureNV = OpTypeAccelerationStructureKHR
21+ // CHECK-NOT: OpTypeAccelerationStructureKHR
22+
2023// CHECK: OpTypePointer IncomingRayPayloadNV %Payload
2124struct Payload
2225{
@@ -28,7 +31,6 @@ struct Attribute
2831 float2 bary;
2932};
3033
31- // CHECK-COUNT-1: [[rstype:%[0-9]+]] = OpTypeAccelerationStructureNV
3234RaytracingAccelerationStructure rs;
3335
3436[shader ("anyhit" )]
Original file line number Diff line number Diff line change 1717// CHECK: OpDecorate [[l:%[0-9]+]] BuiltIn HitKindNV
1818// CHECK: OpDecorate [[m:%[0-9]+]] BuiltIn HitTNV
1919
20+ // CHECK: %accelerationStructureNV = OpTypeAccelerationStructureKHR
21+ // CHECK-NOT: OpTypeAccelerationStructureKHR
22+
2023// CHECK: OpTypePointer IncomingRayPayloadNV %Payload
2124struct Payload
2225{
@@ -28,7 +31,6 @@ struct Attribute
2831 float2 bary;
2932};
3033
31- // CHECK-COUNT-1: [[rstype:%[0-9]+]] = OpTypeAccelerationStructureNV
3234RaytracingAccelerationStructure rs;
3335
3436[shader ("closesthit" )]
Original file line number Diff line number Diff line change 44// CHECK: OpDecorate [[a:%[0-9]+]] BuiltIn LaunchIdNV
55// CHECK: OpDecorate [[b:%[0-9]+]] BuiltIn LaunchSizeNV
66
7- // CHECK-COUNT-1: [[rstype:%[0-9]+]] = OpTypeAccelerationStructureNV
7+ // CHECK: %accelerationStructureNV = OpTypeAccelerationStructureKHR
8+ // CHECK-NOT: OpTypeAccelerationStructureKHR
89RaytracingAccelerationStructure rs;
910
1011struct Payload
Original file line number Diff line number Diff line change 2828// CHECK: OpDecorate [[k:%[0-9]+]] BuiltIn WorldToObjectNV
2929// CHECK: OpDecorate [[l:%[0-9]+]] BuiltIn HitKindNV
3030
31+ // CHECK: %accelerationStructureNV = OpTypeAccelerationStructureKHR
32+ // CHECK-NOT: OpTypeAccelerationStructureKHR
3133
3234// CHECK: OpTypePointer CallableDataNV %CallData
3335struct CallData
@@ -44,7 +46,6 @@ struct Attribute
4446{
4547 float2 bary;
4648};
47- // CHECK-COUNT-1: [[rstype:%[0-9]+]] = OpTypeAccelerationStructureNV
4849RaytracingAccelerationStructure rs;
4950
5051
Original file line number Diff line number Diff line change 44// CHECK: OpDecorate [[a:%[0-9]+]] BuiltIn LaunchIdNV
55// CHECK: OpDecorate [[b:%[0-9]+]] BuiltIn LaunchSizeNV
66
7- // CHECK-COUNT-1: [[rstype:%[0-9]+]] = OpTypeAccelerationStructureNV
7+ // CHECK: %accelerationStructureNV = OpTypeAccelerationStructureKHR
8+ // CHECK-NOT: OpTypeAccelerationStructureKHR
89RaytracingAccelerationStructure rs;
910
1011struct Payload
Original file line number Diff line number Diff line change 44// CHECK: OpExtension "SPV_KHR_ray_tracing"
55// CHECK: OpExtension "SPV_KHR_ray_query"
66
7- // CHECK-COUNT-1: [[rs:%\d+]] = OpTypeAccelerationStructureNV
7+ // CHECK: %accelerationStructureNV = OpTypeAccelerationStructureKHR
8+ // CHECK-NOT: OpTypeAccelerationStructureKHR
89RaytracingAccelerationStructure AccelerationStructure : register (t0);
910RayDesc MakeRayDesc ()
1011{
You can’t perform that action at this time.
0 commit comments