Skip to content

Commit 6552952

Browse files
author
kevyuu
committed
Add more ray tracing intersection query
1 parent f8e837b commit 6552952

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

include/nbl/builtin/hlsl/spirv_intrinsics/raytracing.hlsl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,21 @@ bool rayQueryProceedKHR([[vk::ext_reference]] RayQueryKHR query);
4646
[[vk::ext_instruction(spv::OpRayQueryGetIntersectionTypeKHR)]]
4747
int rayQueryGetIntersectionTypeKHR([[vk::ext_reference]] RayQueryKHR query, uint32_t committed);
4848

49+
[[vk::ext_capability(spv::CapabilityRayQueryKHR)]]
50+
[[vk::ext_extension("SPV_KHR_ray_query")]]
51+
[[vk::ext_instruction(spv::OpRayQueryGetIntersectionInstanceCustomIndexKHR)]]
52+
int rayQueryGetIntersectionInstanceCustomIndexKHR([[vk::ext_reference]] RayQueryKHR query, uint32_t committed);
53+
4954
[[vk::ext_capability(spv::CapabilityRayQueryKHR)]]
5055
[[vk::ext_extension("SPV_KHR_ray_query")]]
5156
[[vk::ext_instruction(spv::OpRayQueryGetIntersectionInstanceIdKHR)]]
5257
int rayQueryGetIntersectionInstanceIdKHR([[vk::ext_reference]] RayQueryKHR query, uint32_t committed);
5358

59+
[[vk::ext_capability(spv::CapabilityRayQueryKHR)]]
60+
[[vk::ext_extension("SPV_KHR_ray_query")]]
61+
[[vk::ext_instruction(spv::OpRayQueryGetIntersectionGeometryIndexKHR)]]
62+
int rayQueryGetIntersectionGeometryIndexKHR([[vk::ext_reference]] RayQueryKHR query, uint32_t committed);
63+
5464
[[vk::ext_capability(spv::CapabilityRayQueryKHR)]]
5565
[[vk::ext_extension("SPV_KHR_ray_query")]]
5666
[[vk::ext_instruction(spv::OpRayQueryGetIntersectionPrimitiveIndexKHR)]]
@@ -61,6 +71,11 @@ int rayQueryGetIntersectionPrimitiveIndexKHR([[vk::ext_reference]] RayQueryKHR q
6171
[[vk::ext_instruction(spv::OpRayQueryGetIntersectionBarycentricsKHR)]]
6272
float2 rayQueryGetIntersectionBarycentricsKHR([[vk::ext_reference]] RayQueryKHR query, uint32_t committed);
6373

74+
[[vk::ext_capability(spv::CapabilityRayQueryKHR)]]
75+
[[vk::ext_extension("SPV_KHR_ray_query")]]
76+
[[vk::ext_instruction(spv::OpRayQueryGetIntersectionFrontFaceKHR)]]
77+
float2 rayQueryGetIntersectionFrontFaceKHR([[vk::ext_reference]] RayQueryKHR query, uint32_t committed);
78+
6479
// position fetch for ray tracing uses gl_HitTriangleVertexPositionsEXT -> HitTriangleVertexPositionsKHR decorated OpVariable
6580
[[vk::ext_builtin_input(spv::BuiltInHitTriangleVertexPositionsKHR)]]
6681
static const float32_t3 HitTriangleVertexPositionsKHR[3];

0 commit comments

Comments
 (0)