pub struct AccelerationStructureCreateFlags(/* private fields */);
Expand description
Flags that control how an acceleration structure is created.
Implementations§
source§impl AccelerationStructureCreateFlags
impl AccelerationStructureCreateFlags
sourcepub const fn empty() -> Self
pub const fn empty() -> Self
Returns a AccelerationStructureCreateFlags
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 AccelerationStructureCreateFlags
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 AccelerationStructureCreateFlags
impl BitAndAssign for AccelerationStructureCreateFlags
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOrAssign for AccelerationStructureCreateFlags
impl BitOrAssign for AccelerationStructureCreateFlags
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXorAssign for AccelerationStructureCreateFlags
impl BitXorAssign for AccelerationStructureCreateFlags
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl Clone for AccelerationStructureCreateFlags
impl Clone for AccelerationStructureCreateFlags
source§fn clone(&self) -> AccelerationStructureCreateFlags
fn clone(&self) -> AccelerationStructureCreateFlags
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 moresource§impl From<AccelerationStructureCreateFlags> for AccelerationStructureCreateFlagsKHR
impl From<AccelerationStructureCreateFlags> for AccelerationStructureCreateFlagsKHR
source§fn from(val: AccelerationStructureCreateFlags) -> Self
fn from(val: AccelerationStructureCreateFlags) -> Self
Converts to this type from the input type.
source§impl From<AccelerationStructureCreateFlagsKHR> for AccelerationStructureCreateFlags
impl From<AccelerationStructureCreateFlagsKHR> for AccelerationStructureCreateFlags
source§fn from(val: AccelerationStructureCreateFlagsKHR) -> Self
fn from(val: AccelerationStructureCreateFlagsKHR) -> Self
Converts to this type from the input type.
source§impl PartialEq for AccelerationStructureCreateFlags
impl PartialEq for AccelerationStructureCreateFlags
source§fn eq(&self, other: &AccelerationStructureCreateFlags) -> bool
fn eq(&self, other: &AccelerationStructureCreateFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SubAssign for AccelerationStructureCreateFlags
impl SubAssign for AccelerationStructureCreateFlags
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for AccelerationStructureCreateFlags
impl Eq for AccelerationStructureCreateFlags
impl StructuralEq for AccelerationStructureCreateFlags
impl StructuralPartialEq for AccelerationStructureCreateFlags
Auto Trait Implementations§
impl RefUnwindSafe for AccelerationStructureCreateFlags
impl Send for AccelerationStructureCreateFlags
impl Sync for AccelerationStructureCreateFlags
impl Unpin for AccelerationStructureCreateFlags
impl UnwindSafe for AccelerationStructureCreateFlags
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