pub struct GeometryInstanceFlags(/* private fields */);
Expand description
Flags for an instance in a top-level acceleration structure.
Implementations§
source§impl GeometryInstanceFlags
impl GeometryInstanceFlags
sourcepub const TRIANGLE_FACING_CULL_DISABLE: Self = _
pub const TRIANGLE_FACING_CULL_DISABLE: Self = _
Disable face culling for the instance.
sourcepub const TRIANGLE_FLIP_FACING: Self = _
pub const TRIANGLE_FLIP_FACING: Self = _
Flip the facing (front vs back) of triangles.
sourcepub const FORCE_OPAQUE: Self = _
pub const FORCE_OPAQUE: Self = _
Geometries in this instance will act as if GeometryFlags::OPAQUE
were specified.
sourcepub const FORCE_NO_OPAQUE: Self = _
pub const FORCE_NO_OPAQUE: Self = _
Geometries in this instance will act as if GeometryFlags::OPAQUE
were not specified.
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns a GeometryInstanceFlags
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 BitAnd for GeometryInstanceFlags
impl BitAnd for GeometryInstanceFlags
source§impl BitAndAssign for GeometryInstanceFlags
impl BitAndAssign for GeometryInstanceFlags
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOr for GeometryInstanceFlags
impl BitOr for GeometryInstanceFlags
source§impl BitOrAssign for GeometryInstanceFlags
impl BitOrAssign for GeometryInstanceFlags
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXor for GeometryInstanceFlags
impl BitXor for GeometryInstanceFlags
source§impl BitXorAssign for GeometryInstanceFlags
impl BitXorAssign for GeometryInstanceFlags
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl Clone for GeometryInstanceFlags
impl Clone for GeometryInstanceFlags
source§fn clone(&self) -> GeometryInstanceFlags
fn clone(&self) -> GeometryInstanceFlags
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 Debug for GeometryInstanceFlags
impl Debug for GeometryInstanceFlags
source§impl Default for GeometryInstanceFlags
impl Default for GeometryInstanceFlags
source§impl From<GeometryInstanceFlags> for GeometryInstanceFlagsKHR
impl From<GeometryInstanceFlags> for GeometryInstanceFlagsKHR
source§fn from(val: GeometryInstanceFlags) -> Self
fn from(val: GeometryInstanceFlags) -> Self
Converts to this type from the input type.
source§impl From<GeometryInstanceFlags> for u8
impl From<GeometryInstanceFlags> for u8
source§fn from(value: GeometryInstanceFlags) -> Self
fn from(value: GeometryInstanceFlags) -> Self
Converts to this type from the input type.
source§impl From<GeometryInstanceFlagsKHR> for GeometryInstanceFlags
impl From<GeometryInstanceFlagsKHR> for GeometryInstanceFlags
source§fn from(val: GeometryInstanceFlagsKHR) -> Self
fn from(val: GeometryInstanceFlagsKHR) -> Self
Converts to this type from the input type.
source§impl Hash for GeometryInstanceFlags
impl Hash for GeometryInstanceFlags
source§impl PartialEq for GeometryInstanceFlags
impl PartialEq for GeometryInstanceFlags
source§fn eq(&self, other: &GeometryInstanceFlags) -> bool
fn eq(&self, other: &GeometryInstanceFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Sub for GeometryInstanceFlags
impl Sub for GeometryInstanceFlags
source§impl SubAssign for GeometryInstanceFlags
impl SubAssign for GeometryInstanceFlags
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for GeometryInstanceFlags
impl Eq for GeometryInstanceFlags
impl StructuralEq for GeometryInstanceFlags
impl StructuralPartialEq for GeometryInstanceFlags
Auto Trait Implementations§
impl RefUnwindSafe for GeometryInstanceFlags
impl Send for GeometryInstanceFlags
impl Sync for GeometryInstanceFlags
impl Unpin for GeometryInstanceFlags
impl UnwindSafe for GeometryInstanceFlags
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