Implemented destroy_acceleration_structure

This commit is contained in:
Graham Wihlidal 2019-02-10 02:57:42 +01:00
parent 0a962b42cc
commit bff6f049ea

View file

@ -38,6 +38,15 @@ impl RayTracing {
}
}
pub unsafe fn destroy_acceleration_structure(
&self,
device: vk::Device,
accel_struct: vk::AccelerationStructureNV,
allocation_callbacks: Option<&vk::AllocationCallbacks>,
) {
self.ray_tracing_fn.destroy_acceleration_structure_nv(device, accel_struct, allocation_callbacks.as_raw_ptr());
}
pub fn name() -> &'static CStr {
CStr::from_bytes_with_nul(b"VK_NV_ray_tracing\0").expect("Wrong extension string")
}