pub enum AccelerationStructureGeometryInstancesDataType {
Values(Option<Subbuffer<[AccelerationStructureInstance]>>),
Pointers(Option<Subbuffer<[DeviceSize]>>),
}
Expand description
The data type of an instances geometry.
Variants§
Values(Option<Subbuffer<[AccelerationStructureInstance]>>)
The data buffer contains an array of AccelerationStructureInstance
structures directly.
The inner value can be None
when calling Device::acceleration_structure_build_sizes
,
but must be Some
otherwise.
Pointers(Option<Subbuffer<[DeviceSize]>>)
The data buffer contains an array of pointers to AccelerationStructureInstance
structures.
The inner value can be None
when calling Device::acceleration_structure_build_sizes
,
but must be Some
otherwise.
Trait Implementations§
source§impl Clone for AccelerationStructureGeometryInstancesDataType
impl Clone for AccelerationStructureGeometryInstancesDataType
source§fn clone(&self) -> AccelerationStructureGeometryInstancesDataType
fn clone(&self) -> AccelerationStructureGeometryInstancesDataType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl From<Subbuffer<[AccelerationStructureInstance]>> for AccelerationStructureGeometryInstancesDataType
impl From<Subbuffer<[AccelerationStructureInstance]>> for AccelerationStructureGeometryInstancesDataType
source§fn from(value: Subbuffer<[AccelerationStructureInstance]>) -> Self
fn from(value: Subbuffer<[AccelerationStructureInstance]>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AccelerationStructureGeometryInstancesDataType
impl Send for AccelerationStructureGeometryInstancesDataType
impl Sync for AccelerationStructureGeometryInstancesDataType
impl Unpin for AccelerationStructureGeometryInstancesDataType
impl !UnwindSafe for AccelerationStructureGeometryInstancesDataType
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