Implemented cmd_build_acceleration_structure
This commit is contained in:
parent
04bb5de31e
commit
58ffae64de
1 changed files with 24 additions and 1 deletions
|
@ -78,7 +78,30 @@ impl RayTracing {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// cmd_build_acceleration_structure_nv
|
pub unsafe fn cmd_build_acceleration_structure(
|
||||||
|
&self,
|
||||||
|
command_buffer: vk::CommandBuffer,
|
||||||
|
info: &vk::AccelerationStructureInfoNV,
|
||||||
|
instance_data: vk::Buffer,
|
||||||
|
instance_offset: vk::DeviceSize,
|
||||||
|
update: bool,
|
||||||
|
dst: vk::AccelerationStructureNV,
|
||||||
|
src: vk::AccelerationStructureNV,
|
||||||
|
scratch: vk::Buffer,
|
||||||
|
scratch_offset: vk::DeviceSize,
|
||||||
|
) {
|
||||||
|
self.ray_tracing_fn.cmd_build_acceleration_structure_nv(
|
||||||
|
command_buffer,
|
||||||
|
info,
|
||||||
|
instance_data,
|
||||||
|
instance_offset,
|
||||||
|
if update { vk::TRUE } else { vk::FALSE },
|
||||||
|
dst,
|
||||||
|
src,
|
||||||
|
scratch,
|
||||||
|
scratch_offset,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// cmd_copy_acceleration_structure_nv
|
// cmd_copy_acceleration_structure_nv
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue