From 2088bea6b186257e6e54da10f7c8854724fd79ff Mon Sep 17 00:00:00 2001 From: Vecvec Date: Tue, 24 Sep 2024 07:07:14 +1200 Subject: [PATCH] add a note as to why `command_encoder_build_acceleration_structures_unsafe_tlas` and `command_encoder_build_acceleration_structures` are currently separate --- wgpu-core/src/command/ray_tracing.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wgpu-core/src/command/ray_tracing.rs b/wgpu-core/src/command/ray_tracing.rs index f852d13d79..4d78e628d6 100644 --- a/wgpu-core/src/command/ray_tracing.rs +++ b/wgpu-core/src/command/ray_tracing.rs @@ -69,6 +69,9 @@ struct TlasBufferStore { const SCRATCH_BUFFER_ALIGNMENT: u32 = 256; impl Global { + // Currently this function is very similar to its safe counterpart, however it is certain parts of it are very different, + // making for the two to be implemented differently, the main difference is this function has separate buffers for each + // of the TLAS instances while the other has one large buffer pub fn command_encoder_build_acceleration_structures_unsafe_tlas<'a>( &self, command_encoder_id: CommandEncoderId,