pub struct BuildAccelerationStructureFlags(/* private fields */);
Expand description
Flags to control how an acceleration structure should be built.
Implementations§
source§impl BuildAccelerationStructureFlags
impl BuildAccelerationStructureFlags
sourcepub const ALLOW_UPDATE: Self = _
pub const ALLOW_UPDATE: Self = _
The built acceleration structure can be updated later by building it again with
BuildAccelerationStructureMode::Update
.
The building process may take more time and memory than normal.
sourcepub const ALLOW_COMPACTION: Self = _
pub const ALLOW_COMPACTION: Self = _
The built acceleration structure can be used later as the source in a copy operation with
CopyAccelerationStructureMode::Compact
.
The building process may take more time and memory than normal.
sourcepub const PREFER_FAST_TRACE: Self = _
pub const PREFER_FAST_TRACE: Self = _
Prioritize for best trace performance, with possibly longer build times.
sourcepub const PREFER_FAST_BUILD: Self = _
pub const PREFER_FAST_BUILD: Self = _
Prioritize for shorter build time, with possibly suboptimal trace performance.
sourcepub const LOW_MEMORY: Self = _
pub const LOW_MEMORY: Self = _
Prioritize low acceleration structure and scratch memory size, with possibly longer build times or suboptimal trace performance.
sourcepub const fn empty() -> Self
pub const fn empty() -> Self
Returns a BuildAccelerationStructureFlags
with none of the flags set.
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns a BuildAccelerationStructureFlags
with none of the flags set.
sourcepub const fn intersects(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
Returns whether any flags are set in both self
and other
.
sourcepub const fn contains(self, other: Self) -> bool
pub const fn contains(self, other: Self) -> bool
Returns whether all flags in other
are set in self
.
sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
Returns the intersection of self
and other
.
sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
Returns self
without the flags set in other
.
sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
Returns the flags that are set in self
or other
, but not in both.
Trait Implementations§
source§impl BitAndAssign for BuildAccelerationStructureFlags
impl BitAndAssign for BuildAccelerationStructureFlags
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moresource§impl BitOrAssign for BuildAccelerationStructureFlags
impl BitOrAssign for BuildAccelerationStructureFlags
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moresource§impl BitXorAssign for BuildAccelerationStructureFlags
impl BitXorAssign for BuildAccelerationStructureFlags
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moresource§impl Clone for BuildAccelerationStructureFlags
impl Clone for BuildAccelerationStructureFlags
source§fn clone(&self) -> BuildAccelerationStructureFlags
fn clone(&self) -> BuildAccelerationStructureFlags
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl From<BuildAccelerationStructureFlags> for BuildAccelerationStructureFlagsKHR
impl From<BuildAccelerationStructureFlags> for BuildAccelerationStructureFlagsKHR
source§fn from(val: BuildAccelerationStructureFlags) -> Self
fn from(val: BuildAccelerationStructureFlags) -> Self
source§impl From<BuildAccelerationStructureFlagsKHR> for BuildAccelerationStructureFlags
impl From<BuildAccelerationStructureFlagsKHR> for BuildAccelerationStructureFlags
source§fn from(val: BuildAccelerationStructureFlagsKHR) -> Self
fn from(val: BuildAccelerationStructureFlagsKHR) -> Self
source§impl PartialEq for BuildAccelerationStructureFlags
impl PartialEq for BuildAccelerationStructureFlags
source§fn eq(&self, other: &BuildAccelerationStructureFlags) -> bool
fn eq(&self, other: &BuildAccelerationStructureFlags) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl SubAssign for BuildAccelerationStructureFlags
impl SubAssign for BuildAccelerationStructureFlags
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read more