pub struct Tlas {
pub(crate) raw: Snatchable<Box<dyn DynAccelerationStructure>>,
pub(crate) device: Arc<Device>,
pub(crate) size_info: AccelerationStructureBuildSizes,
pub(crate) max_instance_count: u32,
pub(crate) flags: AccelerationStructureFlags,
pub(crate) update_mode: AccelerationStructureUpdateMode,
pub(crate) built_index: RwLock<Option<NonZeroU64>>,
pub(crate) dependencies: RwLock<Vec<Arc<Blas>>>,
pub(crate) instance_buffer: ManuallyDrop<Box<dyn DynBuffer>>,
pub(crate) label: String,
pub(crate) tracking_data: TrackingData,
pub(crate) bind_groups: Mutex<WeakVec<BindGroup>>,
}
Fields§
§raw: Snatchable<Box<dyn DynAccelerationStructure>>
§device: Arc<Device>
§size_info: AccelerationStructureBuildSizes
§max_instance_count: u32
§flags: AccelerationStructureFlags
§update_mode: AccelerationStructureUpdateMode
§built_index: RwLock<Option<NonZeroU64>>
§dependencies: RwLock<Vec<Arc<Blas>>>
§instance_buffer: ManuallyDrop<Box<dyn DynBuffer>>
§label: String
The label
from the descriptor used to create the resource.
tracking_data: TrackingData
§bind_groups: Mutex<WeakVec<BindGroup>>
Implementations§
Trait Implementations§
source§impl AccelerationStructure for Tlas
impl AccelerationStructure for Tlas
fn raw<'a>( &'a self, guard: &'a SnatchGuard<'_>, ) -> Option<&'a dyn DynAccelerationStructure>
source§impl Labeled for Tlas
impl Labeled for Tlas
source§fn label(&self) -> &str
fn label(&self) -> &str
Returns a string identifying this resource for logging and errors. Read more
fn error_ident(&self) -> ResourceErrorIdent
source§impl ParentDevice for Tlas
impl ParentDevice for Tlas
source§impl Trackable for Tlas
impl Trackable for Tlas
fn tracker_index(&self) -> TrackerIndex
Auto Trait Implementations§
impl !Freeze for Tlas
impl !RefUnwindSafe for Tlas
impl Send for Tlas
impl Sync for Tlas
impl Unpin for Tlas
impl !UnwindSafe for Tlas
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