pub struct AccelerationStructureGeometryAabbsData {
pub flags: GeometryFlags,
pub data: Option<Subbuffer<[u8]>>,
pub stride: u32,
pub _ne: NonExhaustive,
}
Expand description
A bottom-level geometry consisting of axis-aligned bounding boxes.
Fields§
§flags: GeometryFlags
Specifies how the geometry should be built.
The default value is empty.
data: Option<Subbuffer<[u8]>>
The AABB data itself, consisting of an array of AabbPositions
structs.
This can be None
when calling Device::acceleration_structure_build_sizes
,
but must be Some
otherwise.
The default value is None
.
stride: u32
The number of bytes between the start of successive elements in data
.
This must be a multiple of 8.
The default value is 0, which must be overridden.
_ne: NonExhaustive
Trait Implementations§
source§impl Clone for AccelerationStructureGeometryAabbsData
impl Clone for AccelerationStructureGeometryAabbsData
source§fn clone(&self) -> AccelerationStructureGeometryAabbsData
fn clone(&self) -> AccelerationStructureGeometryAabbsData
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for AccelerationStructureGeometryAabbsData
impl Send for AccelerationStructureGeometryAabbsData
impl Sync for AccelerationStructureGeometryAabbsData
impl Unpin for AccelerationStructureGeometryAabbsData
impl !UnwindSafe for AccelerationStructureGeometryAabbsData
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