pub struct BuildAccelerationStructureDescriptor<'a, A: Api> {
pub entries: &'a AccelerationStructureEntries<'a, A>,
pub mode: AccelerationStructureBuildMode,
pub flags: AccelerationStructureBuildFlags,
pub source_acceleration_structure: Option<&'a A::AccelerationStructure>,
pub destination_acceleration_structure: &'a A::AccelerationStructure,
pub scratch_buffer: &'a A::Buffer,
pub scratch_buffer_offset: BufferAddress,
}
Expand description
Updates use source_acceleration_structure if present, else the update will be performed in place. For updates, only the data is allowed to change (not the meta data or sizes).
Fields§
§entries: &'a AccelerationStructureEntries<'a, A>
§mode: AccelerationStructureBuildMode
§flags: AccelerationStructureBuildFlags
§source_acceleration_structure: Option<&'a A::AccelerationStructure>
§destination_acceleration_structure: &'a A::AccelerationStructure
§scratch_buffer: &'a A::Buffer
§scratch_buffer_offset: BufferAddress
Trait Implementations§
Auto Trait Implementations§
impl<'a, A> Freeze for BuildAccelerationStructureDescriptor<'a, A>
impl<'a, A> RefUnwindSafe for BuildAccelerationStructureDescriptor<'a, A>
impl<'a, A> Send for BuildAccelerationStructureDescriptor<'a, A>
impl<'a, A> Sync for BuildAccelerationStructureDescriptor<'a, A>
impl<'a, A> Unpin for BuildAccelerationStructureDescriptor<'a, A>
impl<'a, A> UnwindSafe for BuildAccelerationStructureDescriptor<'a, 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