pub struct Blas {
pub(crate) handle: Option<u64>,
pub(crate) inner: DispatchBlas,
}
Expand description
Bottom Level Acceleration Structure (BLAS).
A BLAS is a device-specific raytracing acceleration structure that contains geometry data.
These BLASes are combined with transform in a TlasInstance to create a Tlas.
Fields§
§handle: Option<u64>
§inner: DispatchBlas
Implementations§
Source§impl Blas
impl Blas
Sourcepub fn handle(&self) -> Option<u64>
pub fn handle(&self) -> Option<u64>
Raw handle to the acceleration structure, used inside raw instance buffers.
Sourcepub unsafe fn as_hal<A: HalApi, F: FnOnce(Option<&A::AccelerationStructure>) -> R, R>(
&mut self,
hal_blas_callback: F,
) -> R
Available on wgpu_core
only.
pub unsafe fn as_hal<A: HalApi, F: FnOnce(Option<&A::AccelerationStructure>) -> R, R>( &mut self, hal_blas_callback: F, ) -> R
wgpu_core
only.Returns the inner hal Acceleration Structure using a callback. The hal acceleration structure
will be None
if the backend type argument does not match with this wgpu Blas
This method will start the wgpu_core level command recording.
§Safety
- The raw handle obtained from the hal Acceleration Structure must not be manually destroyed
Trait Implementations§
Source§impl Ord for Blas
impl Ord for Blas
Source§impl PartialOrd for Blas
impl PartialOrd for Blas
impl Eq for Blas
Auto Trait Implementations§
impl Freeze for Blas
impl !RefUnwindSafe for Blas
impl Send for Blas
impl Sync for Blas
impl Unpin for Blas
impl !UnwindSafe for Blas
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.