diff --git a/wgpu/src/api/bind_group.rs b/wgpu/src/api/bind_group.rs index fac59338ff..3b724e058b 100644 --- a/wgpu/src/api/bind_group.rs +++ b/wgpu/src/api/bind_group.rs @@ -79,8 +79,8 @@ pub enum BindingResource<'a> { /// 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. + /// 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 Tlas), } #[cfg(send_sync)] diff --git a/wgpu/src/api/blas.rs b/wgpu/src/api/blas.rs index 329f11849a..a0dc97c7dd 100644 --- a/wgpu/src/api/blas.rs +++ b/wgpu/src/api/blas.rs @@ -35,8 +35,8 @@ static_assertions::assert_impl_all!(CreateBlasDescriptor<'_>: Send, Sync); /// /// Each one contains: /// - A reference to a BLAS, this ***must*** be interacted with using [TlasInstance::new] or [TlasInstance::set_blas], a -/// TlasInstance that references a BLAS keeps that BLAS from being dropped, but if the BLAS is explicitly destroyed (e.g. -/// using [Blas::destroy]) the TlasInstance becomes invalid +/// TlasInstance that references a BLAS keeps that BLAS from being dropped, but if the BLAS is explicitly destroyed (e.g. +/// using [Blas::destroy]) the TlasInstance becomes invalid /// - A user accessible transformation matrix /// - A user accessible mask /// - A user accessible custom index diff --git a/wgpu/src/api/device.rs b/wgpu/src/api/device.rs index 2fa040ec10..cd279db128 100644 --- a/wgpu/src/api/device.rs +++ b/wgpu/src/api/device.rs @@ -529,7 +529,7 @@ impl Device { /// if `sizes` is [BlasGeometrySizeDescriptors::Triangles] then the following must be satisfied /// - For every geometry descriptor (for the purposes this is called `geo_desc`) of `sizes.descriptors` the following must be satisfied: /// - `geo_desc.vertex_format` must be within allowed formats (allowed formats for a given feature set - /// may be queried with [Features::allowed_vertex_formats_for_blas]). + /// may be queried with [Features::allowed_vertex_formats_for_blas]). /// - Both or neither of `geo_desc.index_format` and `geo_desc.index_count` must be provided. /// /// [Features::EXPERIMENTAL_RAY_TRACING_ACCELERATION_STRUCTURE]: wgt::Features::EXPERIMENTAL_RAY_TRACING_ACCELERATION_STRUCTURE