This sample demonstrates the use of ray queries in a compute shader to fetch triangle positions, as an alternative to the raytracing pipeline approach.
- Utilizes VK_KHR_ray_query extension
- Compute shader implementation for position retrieval
- Dynamic scene animation via Top-Level Acceleration Structure (TLAS) updates
-
Ray Query Execution
- Performed within compute shader
- Retrieves triangle position data
-
Geometric Processing
- Normal generation from retrieved position data
- Shading application based on computed normals
-
Animation Technique
- TLAS matrix modification
- Dynamic rebuilding of TLAS for each frame
- Performance comparison with raytracing pipeline approach
- Efficiency of compute shader-based position fetching
- TLAS update optimization for smooth animation
- Scenarios requiring efficient geometry data access without full raytracing pipeline
- Dynamic scenes with frequent TLAS updates
