pub struct AccelerationStructureGeometryInfo<G> {
pub ty: AccelerationStructureTypeKHR,
pub flags: BuildAccelerationStructureFlagsKHR,
pub geometries: Box<[G]>,
}Expand description
Specifies the geometry data of an acceleration structure.
Fields§
§ty: AccelerationStructureTypeKHRType of acceleration structure.
flags: BuildAccelerationStructureFlagsKHRSpecifies additional parameters of the acceleration structure.
geometries: Box<[G]>A slice of geometry structures.
Implementations§
Source§impl<G> AccelerationStructureGeometryInfo<G>
impl<G> AccelerationStructureGeometryInfo<G>
Sourcepub fn blas(geometries: impl Into<Box<[G]>>) -> Self
pub fn blas(geometries: impl Into<Box<[G]>>) -> Self
A bottom-level acceleration structure containing the AABBs or geometry to be intersected.
Sourcepub fn tlas(geometries: impl Into<Box<[G]>>) -> Self
pub fn tlas(geometries: impl Into<Box<[G]>>) -> Self
A top-level acceleration structure containing instance data referring to bottom-level acceleration structures.
Sourcepub fn flags(self, flags: BuildAccelerationStructureFlagsKHR) -> Self
pub fn flags(self, flags: BuildAccelerationStructureFlagsKHR) -> Self
Sets the flags on this instance.
Trait Implementations§
Source§impl<G: Clone> Clone for AccelerationStructureGeometryInfo<G>
impl<G: Clone> Clone for AccelerationStructureGeometryInfo<G>
Source§fn clone(&self) -> AccelerationStructureGeometryInfo<G>
fn clone(&self) -> AccelerationStructureGeometryInfo<G>
Returns a duplicate 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<G> Freeze for AccelerationStructureGeometryInfo<G>
impl<G> RefUnwindSafe for AccelerationStructureGeometryInfo<G>where
G: RefUnwindSafe,
impl<G> Send for AccelerationStructureGeometryInfo<G>where
G: Send,
impl<G> Sync for AccelerationStructureGeometryInfo<G>where
G: Sync,
impl<G> Unpin for AccelerationStructureGeometryInfo<G>
impl<G> UnwindSafe for AccelerationStructureGeometryInfo<G>where
G: UnwindSafe,
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