From ea66baff6290307adc9d9a9d19db80d7fc57e79e Mon Sep 17 00:00:00 2001 From: Graham Wihlidal Date: Sun, 10 Feb 2019 03:38:01 +0100 Subject: [PATCH] Implemented cmd_write_acceleration_structures_properties --- ash/src/extensions/nv/ray_tracing.rs | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/ash/src/extensions/nv/ray_tracing.rs b/ash/src/extensions/nv/ray_tracing.rs index 7a61005..b9fab42 100644 --- a/ash/src/extensions/nv/ray_tracing.rs +++ b/ash/src/extensions/nv/ray_tracing.rs @@ -157,7 +157,24 @@ impl RayTracing { // get_acceleration_structure_handle_nv - // cmd_write_acceleration_structures_properties_nv + pub unsafe fn cmd_write_acceleration_structures_properties( + &self, + command_buffer: vk::CommandBuffer, + structures: &[vk::AccelerationStructureNV], + query_type: vk::QueryType, + query_pool: vk::QueryPool, + first_query: u32, + ) { + self.ray_tracing_fn + .cmd_write_acceleration_structures_properties_nv( + command_buffer, + structures.len() as u32, + structures.as_ptr(), + query_type, + query_pool, + first_query, + ); + } pub unsafe fn compile_deferred( &self,