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() -> AccelerationStructureCreateFlags
pub const fn empty() -> AccelerationStructureCreateFlags
Returns a AccelerationStructureCreateFlags with none of the flags set.
Sourcepub const fn none() -> AccelerationStructureCreateFlags
👎Deprecated since 0.31.0: use empty instead
pub const fn none() -> AccelerationStructureCreateFlags
empty insteadReturns a AccelerationStructureCreateFlags with none of the flags set.
Sourcepub const fn intersects(self, other: AccelerationStructureCreateFlags) -> bool
pub const fn intersects(self, other: AccelerationStructureCreateFlags) -> bool
Returns whether any flags are set in both self and other.
Sourcepub const fn contains(self, other: AccelerationStructureCreateFlags) -> bool
pub const fn contains(self, other: AccelerationStructureCreateFlags) -> bool
Returns whether all flags in other are set in self.
Sourcepub const fn union(
self,
other: AccelerationStructureCreateFlags,
) -> AccelerationStructureCreateFlags
pub const fn union( self, other: AccelerationStructureCreateFlags, ) -> AccelerationStructureCreateFlags
Returns the union of self and other.
Sourcepub const fn intersection(
self,
other: AccelerationStructureCreateFlags,
) -> AccelerationStructureCreateFlags
pub const fn intersection( self, other: AccelerationStructureCreateFlags, ) -> AccelerationStructureCreateFlags
Returns the intersection of self and other.
Sourcepub const fn difference(
self,
other: AccelerationStructureCreateFlags,
) -> AccelerationStructureCreateFlags
pub const fn difference( self, other: AccelerationStructureCreateFlags, ) -> AccelerationStructureCreateFlags
Returns self without the flags set in other.
Sourcepub const fn symmetric_difference(
self,
other: AccelerationStructureCreateFlags,
) -> AccelerationStructureCreateFlags
pub const fn symmetric_difference( self, other: AccelerationStructureCreateFlags, ) -> AccelerationStructureCreateFlags
Returns the flags that are set in self or other, but not in both.
Trait Implementations§
Source§impl BitAnd for AccelerationStructureCreateFlags
impl BitAnd for AccelerationStructureCreateFlags
Source§type Output = AccelerationStructureCreateFlags
type Output = AccelerationStructureCreateFlags
The resulting type after applying the
& operator.Source§fn bitand(
self,
rhs: AccelerationStructureCreateFlags,
) -> AccelerationStructureCreateFlags
fn bitand( self, rhs: AccelerationStructureCreateFlags, ) -> AccelerationStructureCreateFlags
Performs the
& operation. Read moreSource§impl BitAndAssign for AccelerationStructureCreateFlags
impl BitAndAssign for AccelerationStructureCreateFlags
Source§fn bitand_assign(&mut self, rhs: AccelerationStructureCreateFlags)
fn bitand_assign(&mut self, rhs: AccelerationStructureCreateFlags)
Performs the
&= operation. Read moreSource§impl BitOr for AccelerationStructureCreateFlags
impl BitOr for AccelerationStructureCreateFlags
Source§type Output = AccelerationStructureCreateFlags
type Output = AccelerationStructureCreateFlags
The resulting type after applying the
| operator.Source§fn bitor(
self,
rhs: AccelerationStructureCreateFlags,
) -> AccelerationStructureCreateFlags
fn bitor( self, rhs: AccelerationStructureCreateFlags, ) -> AccelerationStructureCreateFlags
Performs the
| operation. Read moreSource§impl BitOrAssign for AccelerationStructureCreateFlags
impl BitOrAssign for AccelerationStructureCreateFlags
Source§fn bitor_assign(&mut self, rhs: AccelerationStructureCreateFlags)
fn bitor_assign(&mut self, rhs: AccelerationStructureCreateFlags)
Performs the
|= operation. Read moreSource§impl BitXor for AccelerationStructureCreateFlags
impl BitXor for AccelerationStructureCreateFlags
Source§type Output = AccelerationStructureCreateFlags
type Output = AccelerationStructureCreateFlags
The resulting type after applying the
^ operator.Source§fn bitxor(
self,
rhs: AccelerationStructureCreateFlags,
) -> AccelerationStructureCreateFlags
fn bitxor( self, rhs: AccelerationStructureCreateFlags, ) -> AccelerationStructureCreateFlags
Performs the
^ operation. Read moreSource§impl BitXorAssign for AccelerationStructureCreateFlags
impl BitXorAssign for AccelerationStructureCreateFlags
Source§fn bitxor_assign(&mut self, rhs: AccelerationStructureCreateFlags)
fn bitxor_assign(&mut self, rhs: AccelerationStructureCreateFlags)
Performs the
^= operation. Read moreSource§impl Clone for AccelerationStructureCreateFlags
impl Clone for AccelerationStructureCreateFlags
Source§fn clone(&self) -> AccelerationStructureCreateFlags
fn clone(&self) -> AccelerationStructureCreateFlags
Returns a duplicate 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 Default for AccelerationStructureCreateFlags
impl Default for AccelerationStructureCreateFlags
Source§fn default() -> AccelerationStructureCreateFlags
fn default() -> AccelerationStructureCreateFlags
Returns the “default value” for a type. Read more
Source§impl From<AccelerationStructureCreateFlags> for AccelerationStructureCreateFlagsKHR
impl From<AccelerationStructureCreateFlags> for AccelerationStructureCreateFlagsKHR
Source§fn from(
val: AccelerationStructureCreateFlags,
) -> AccelerationStructureCreateFlagsKHR
fn from( val: AccelerationStructureCreateFlags, ) -> AccelerationStructureCreateFlagsKHR
Converts to this type from the input type.
Source§impl From<AccelerationStructureCreateFlagsKHR> for AccelerationStructureCreateFlags
impl From<AccelerationStructureCreateFlagsKHR> for AccelerationStructureCreateFlags
Source§fn from(
val: AccelerationStructureCreateFlagsKHR,
) -> AccelerationStructureCreateFlags
fn from( val: AccelerationStructureCreateFlagsKHR, ) -> AccelerationStructureCreateFlags
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
Tests for
self and other values to be equal, and is used by ==.Source§impl Sub for AccelerationStructureCreateFlags
impl Sub for AccelerationStructureCreateFlags
Source§type Output = AccelerationStructureCreateFlags
type Output = AccelerationStructureCreateFlags
The resulting type after applying the
- operator.Source§fn sub(
self,
rhs: AccelerationStructureCreateFlags,
) -> AccelerationStructureCreateFlags
fn sub( self, rhs: AccelerationStructureCreateFlags, ) -> AccelerationStructureCreateFlags
Performs the
- operation. Read moreSource§impl SubAssign for AccelerationStructureCreateFlags
impl SubAssign for AccelerationStructureCreateFlags
Source§fn sub_assign(&mut self, rhs: AccelerationStructureCreateFlags)
fn sub_assign(&mut self, rhs: AccelerationStructureCreateFlags)
Performs the
-= operation. Read moreimpl Copy for AccelerationStructureCreateFlags
impl Eq for AccelerationStructureCreateFlags
impl StructuralPartialEq for AccelerationStructureCreateFlags
Auto Trait Implementations§
impl Freeze for AccelerationStructureCreateFlags
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