pub struct CopyAccelerationStructureInfo {
pub src: Arc<AccelerationStructure>,
pub dst: Arc<AccelerationStructure>,
pub mode: CopyAccelerationStructureMode,
pub _ne: NonExhaustive,
}
Expand description
Parameters for copying an acceleration structure.
Fields§
§src: Arc<AccelerationStructure>
The acceleration structure to copy from.
There is no default value.
dst: Arc<AccelerationStructure>
The acceleration structure to copy into.
There is no default value.
mode: CopyAccelerationStructureMode
Additional operations to perform during the copy.
The default value is CopyAccelerationStructureMode::Clone
.
_ne: NonExhaustive
Implementations§
source§impl CopyAccelerationStructureInfo
impl CopyAccelerationStructureInfo
sourcepub fn new(
src: Arc<AccelerationStructure>,
dst: Arc<AccelerationStructure>
) -> Self
pub fn new( src: Arc<AccelerationStructure>, dst: Arc<AccelerationStructure> ) -> Self
Returns a CopyAccelerationStructureInfo
with the specified src
and dst
.
Trait Implementations§
source§impl Clone for CopyAccelerationStructureInfo
impl Clone for CopyAccelerationStructureInfo
source§fn clone(&self) -> CopyAccelerationStructureInfo
fn clone(&self) -> CopyAccelerationStructureInfo
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 CopyAccelerationStructureInfo
impl Send for CopyAccelerationStructureInfo
impl Sync for CopyAccelerationStructureInfo
impl Unpin for CopyAccelerationStructureInfo
impl !UnwindSafe for CopyAccelerationStructureInfo
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