Struct wgpu::hal::BuildAccelerationStructureDescriptor
source · pub struct BuildAccelerationStructureDescriptor<'a, A>where
A: Api,{
pub entries: &'a AccelerationStructureEntries<'a, A>,
pub mode: AccelerationStructureBuildMode,
pub flags: AccelerationStructureFlags,
pub source_acceleration_structure: Option<&'a <A as Api>::AccelerationStructure>,
pub destination_acceleration_structure: &'a <A as Api>::AccelerationStructure,
pub scratch_buffer: &'a <A as Api>::Buffer,
pub scratch_buffer_offset: u64,
}
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: AccelerationStructureFlags
§source_acceleration_structure: Option<&'a <A as Api>::AccelerationStructure>
§destination_acceleration_structure: &'a <A as Api>::AccelerationStructure
§scratch_buffer: &'a <A as Api>::Buffer
§scratch_buffer_offset: u64
Trait Implementations§
source§impl<'a, A> Clone for BuildAccelerationStructureDescriptor<'a, A>
impl<'a, A> Clone for BuildAccelerationStructureDescriptor<'a, A>
source§fn clone(&self) -> BuildAccelerationStructureDescriptor<'a, A>
fn clone(&self) -> BuildAccelerationStructureDescriptor<'a, A>
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<'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