From 5eb9f09c805bc378c1d09c458781b16da10e56eb Mon Sep 17 00:00:00 2001 From: Graham Wihlidal Date: Sun, 10 Feb 2019 03:29:51 +0100 Subject: [PATCH] Implemented cmd_copy_acceleration_structure --- ash/src/extensions/nv/ray_tracing.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ash/src/extensions/nv/ray_tracing.rs b/ash/src/extensions/nv/ray_tracing.rs index 4ddf1bb..8fbe0e7 100644 --- a/ash/src/extensions/nv/ray_tracing.rs +++ b/ash/src/extensions/nv/ray_tracing.rs @@ -103,7 +103,16 @@ impl RayTracing { ); } - // cmd_copy_acceleration_structure_nv + pub unsafe fn cmd_copy_acceleration_structure( + &self, + command_buffer: vk::CommandBuffer, + dst: vk::AccelerationStructureNV, + src: vk::AccelerationStructureNV, + mode: vk::CopyAccelerationStructureModeNV, + ) { + self.ray_tracing_fn + .cmd_copy_acceleration_structure_nv(command_buffer, dst, src, mode); + } // cmd_trace_rays_nv