This MR adds a pass to lower ray query intrinsics. The traversal code is based on the implementation in
The implementation still needs some testing There don't seem to be any issues that are specific to ray queries with the applications I tested.
- vk_raytracing_tutorial_KHR: ao, rayquery
- SaschaWillems/Vulkan: rayquery
- Quake II RTX
- Khronos Vulkan-Samples: ray_queries (crashes, The ray tracing pipeline equivalent also doesn't work)
I think this should be comply with the specification now and the issue with the Khronos samples seems to be unrelated to this MR, meaning this MR is ready for review.