Skip to content

Commit

Permalink
yet more docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Vecvec committed Sep 21, 2024
1 parent 41a1181 commit 9f808c0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion wgpu/src/api/bind_group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,17 @@ pub enum BindingResource<'a> {
/// Corresponds to [`wgt::BindingType::Texture`] and [`wgt::BindingType::StorageTexture`] with
/// [`BindGroupLayoutEntry::count`] set to Some.
TextureViewArray(&'a [&'a TextureView]),
/// Todo
/// Binding is backed by a top level acceleration structure
///
/// Corresponds to [`wgt::BindingType::AccelerationStructure`] with [`BindGroupLayoutEntry::count`] set to None.
///
/// # Validation
/// When using (e.g. with `set_bind_group`) a bind group that has been created with one or more of this binding
/// resource certain checks take place.
/// - TLAS must have been built, if not a validation error is generated
/// - All BLASes that were built into the TLAS must be built before the TLAS if this was not satisfied and TLAS was
/// built using `build_acceleration_structures` a validation error is generated otherwise this is a part of the
/// safety section of `build_acceleration_structures_unsafe_tlas` and so undefined behavior occurs.
AccelerationStructure(&'a ray_tracing::Tlas),
}
#[cfg(send_sync)]
Expand Down

0 comments on commit 9f808c0

Please sign in to comment.