Skip to content

Commit

Permalink
add a note as to why `command_encoder_build_acceleration_structures_u…
Browse files Browse the repository at this point in the history
…nsafe_tlas` and `command_encoder_build_acceleration_structures` are currently separate
  • Loading branch information
Vecvec committed Sep 23, 2024
1 parent 2f9e18d commit 2088bea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wgpu-core/src/command/ray_tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2088bea

Please sign in to comment.