pub struct BlasAabbGeometry<'a> {
pub size: &'a BlasAABBGeometrySizeDescriptor,
pub stride: BufferAddress,
pub aabb_buffer: &'a Buffer,
pub primitive_offset: u32,
}Expand description
Definition for an axis-aligned bounding box geometry group for a bottom level acceleration structure.
Buffer data must contain size.primitive_count primitives at primitive_offset, each size.stride bytes,
with stride at least AABB_GEOMETRY_MIN_STRIDE and a multiple of 8.
Fields§
§size: &'a BlasAABBGeometrySizeDescriptorSub descriptor for the size defining attributes of this geometry.
stride: BufferAddressStride in bytes between consecutive AABB primitives in the buffer (at least
AABB_GEOMETRY_MIN_STRIDE, and must be a multiple of 8).
aabb_buffer: &'a BufferBuffer containing packed AABB primitives (layout determined by size.stride).
primitive_offset: u32Byte offset to the first AABB primitive (must be a multiple of 8).
Auto Trait Implementations§
impl<'a> Freeze for BlasAabbGeometry<'a>
impl<'a> !RefUnwindSafe for BlasAabbGeometry<'a>
impl<'a> Send for BlasAabbGeometry<'a>
impl<'a> Sync for BlasAabbGeometry<'a>
impl<'a> Unpin for BlasAabbGeometry<'a>
impl<'a> !UnwindSafe for BlasAabbGeometry<'a>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more