Struct vulkano::acceleration_structure::GeometryFlags
source · pub struct GeometryFlags(/* private fields */);
Expand description
Flags to control how an acceleration structure geometry should be built.
Implementations§
source§impl GeometryFlags
impl GeometryFlags
sourcepub const OPAQUE: Self = _
pub const OPAQUE: Self = _
The geometry does not invoke the any-hit shaders, even if it is present in a hit group.
sourcepub const NO_DUPLICATE_ANY_HIT_INVOCATION: Self = _
pub const NO_DUPLICATE_ANY_HIT_INVOCATION: Self = _
The any-hit shader will never be called more than once for each primitive in the geometry.
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns a GeometryFlags
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 GeometryFlags
impl BitAnd for GeometryFlags
source§impl BitAndAssign for GeometryFlags
impl BitAndAssign for GeometryFlags
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOr for GeometryFlags
impl BitOr for GeometryFlags
source§impl BitOrAssign for GeometryFlags
impl BitOrAssign for GeometryFlags
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXor for GeometryFlags
impl BitXor for GeometryFlags
source§impl BitXorAssign for GeometryFlags
impl BitXorAssign for GeometryFlags
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl Clone for GeometryFlags
impl Clone for GeometryFlags
source§fn clone(&self) -> GeometryFlags
fn clone(&self) -> GeometryFlags
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 GeometryFlags
impl Debug for GeometryFlags
source§impl Default for GeometryFlags
impl Default for GeometryFlags
source§impl From<GeometryFlags> for GeometryFlagsKHR
impl From<GeometryFlags> for GeometryFlagsKHR
source§fn from(val: GeometryFlags) -> Self
fn from(val: GeometryFlags) -> Self
Converts to this type from the input type.
source§impl From<GeometryFlagsKHR> for GeometryFlags
impl From<GeometryFlagsKHR> for GeometryFlags
source§fn from(val: GeometryFlagsKHR) -> Self
fn from(val: GeometryFlagsKHR) -> Self
Converts to this type from the input type.
source§impl Hash for GeometryFlags
impl Hash for GeometryFlags
source§impl PartialEq for GeometryFlags
impl PartialEq for GeometryFlags
source§fn eq(&self, other: &GeometryFlags) -> bool
fn eq(&self, other: &GeometryFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Sub for GeometryFlags
impl Sub for GeometryFlags
source§impl SubAssign for GeometryFlags
impl SubAssign for GeometryFlags
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for GeometryFlags
impl Eq for GeometryFlags
impl StructuralEq for GeometryFlags
impl StructuralPartialEq for GeometryFlags
Auto Trait Implementations§
impl RefUnwindSafe for GeometryFlags
impl Send for GeometryFlags
impl Sync for GeometryFlags
impl Unpin for GeometryFlags
impl UnwindSafe for GeometryFlags
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