Rust format

This commit is contained in:
Graham Wihlidal 2019-02-10 03:12:00 +01:00
parent 24da3bb446
commit 1213e92687

View file

@ -44,7 +44,11 @@ impl RayTracing {
accel_struct: vk::AccelerationStructureNV, accel_struct: vk::AccelerationStructureNV,
allocation_callbacks: Option<&vk::AllocationCallbacks>, allocation_callbacks: Option<&vk::AllocationCallbacks>,
) { ) {
self.ray_tracing_fn.destroy_acceleration_structure_nv(device, accel_struct, allocation_callbacks.as_raw_ptr()); self.ray_tracing_fn.destroy_acceleration_structure_nv(
device,
accel_struct,
allocation_callbacks.as_raw_ptr(),
);
} }
pub unsafe fn get_acceleration_structure_memory_requirements( pub unsafe fn get_acceleration_structure_memory_requirements(
@ -53,7 +57,8 @@ impl RayTracing {
info: &vk::AccelerationStructureMemoryRequirementsInfoNV, info: &vk::AccelerationStructureMemoryRequirementsInfoNV,
) -> vk::MemoryRequirements2KHR { ) -> vk::MemoryRequirements2KHR {
let mut requirements = mem::uninitialized(); let mut requirements = mem::uninitialized();
self.ray_tracing_fn.get_acceleration_structure_memory_requirements_nv(device, info, &mut requirements); self.ray_tracing_fn
.get_acceleration_structure_memory_requirements_nv(device, info, &mut requirements);
requirements requirements
} }