pub struct AccelerationStructureCreateInfo {
pub create_flags: AccelerationStructureCreateFlags,
pub buffer: Subbuffer<[u8]>,
pub ty: AccelerationStructureType,
pub _ne: NonExhaustive,
}
Expand description
Parameters to create a new AccelerationStructure
.
Fields§
§create_flags: AccelerationStructureCreateFlags
Specifies how to create the acceleration structure.
The default value is empty.
buffer: Subbuffer<[u8]>
The subbuffer to store the acceleration structure on.
The subbuffer must have an offset
that is a multiple of 256, and its usage
must include
BufferUsage::ACCELERATION_STRUCTURE_STORAGE
. It must not be accessed while it is bound
to the acceleration structure.
There is no default value.
ty: AccelerationStructureType
The type of acceleration structure to create.
The default value is AccelerationStructureType::Generic
.
_ne: NonExhaustive
Implementations§
Trait Implementations§
source§impl Clone for AccelerationStructureCreateInfo
impl Clone for AccelerationStructureCreateInfo
source§fn clone(&self) -> AccelerationStructureCreateInfo
fn clone(&self) -> AccelerationStructureCreateInfo
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 AccelerationStructureCreateInfo
impl Send for AccelerationStructureCreateInfo
impl Sync for AccelerationStructureCreateInfo
impl Unpin for AccelerationStructureCreateInfo
impl !UnwindSafe for AccelerationStructureCreateInfo
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