#[non_exhaustive]#[repr(i32)]pub enum CopyAccelerationStructureMode {
Clone = 0,
Compact = 1,
Serialize = 2,
Deserialize = 3,
}
Expand description
What mode an acceleration structure copy command should operate in.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Clone = 0
Copy the source into the destination. This is a shallow copy: if the source holds references to other acceleration structures, only the references are copied, not the other acceleration structures.
Both source and destination must have been created with the same
AccelerationStructureCreateInfo
.
Compact = 1
Create a more compact version of the source in the destination. This is a shallow copy: if the source holds references to other acceleration structures, only the references are copied, not the other acceleration structures.
The source acceleration structure must have been built with the
BuildAccelerationStructureFlags::ALLOW_COMPACTION
flag.
Serialize = 2
Serialize the acceleration structure into data in a semi-opaque format, that can be deserialized by a compatible Vulkan implementation.
Deserialize = 3
Deserialize data back into an acceleration structure.
Trait Implementations§
source§impl Clone for CopyAccelerationStructureMode
impl Clone for CopyAccelerationStructureMode
source§fn clone(&self) -> CopyAccelerationStructureMode
fn clone(&self) -> CopyAccelerationStructureMode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl From<CopyAccelerationStructureMode> for CopyAccelerationStructureModeKHR
impl From<CopyAccelerationStructureMode> for CopyAccelerationStructureModeKHR
source§fn from(val: CopyAccelerationStructureMode) -> Self
fn from(val: CopyAccelerationStructureMode) -> Self
source§impl Hash for CopyAccelerationStructureMode
impl Hash for CopyAccelerationStructureMode
source§impl PartialEq for CopyAccelerationStructureMode
impl PartialEq for CopyAccelerationStructureMode
source§fn eq(&self, other: &CopyAccelerationStructureMode) -> bool
fn eq(&self, other: &CopyAccelerationStructureMode) -> bool
self
and other
values to be equal, and is used
by ==
.