[−][src]Struct spirv_headers::RayFlags
SPIR-V operand kind: RayFlags
Implementations
impl RayFlags
[src][−]
pub const NONE_KHR: RayFlags
[src]
pub const OPAQUE_KHR: RayFlags
[src]
pub const NO_OPAQUE_KHR: RayFlags
[src]
pub const TERMINATE_ON_FIRST_HIT_KHR: RayFlags
[src]
pub const SKIP_CLOSEST_HIT_SHADER_KHR: RayFlags
[src]
pub const CULL_BACK_FACING_TRIANGLES_KHR: RayFlags
[src]
pub const CULL_FRONT_FACING_TRIANGLES_KHR: RayFlags
[src]
pub const CULL_OPAQUE_KHR: RayFlags
[src]
pub const CULL_NO_OPAQUE_KHR: RayFlags
[src]
pub const SKIP_TRIANGLES_KHR: RayFlags
[src]
pub const SKIP_AAB_BS_KHR: RayFlags
[src]
pub const fn empty() -> RayFlags
[src][−]
Returns an empty set of flags
pub const fn all() -> RayFlags
[src][−]
Returns the set containing all flags.
pub const fn bits(&self) -> u32
[src][−]
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u32) -> Option<RayFlags>
[src][−]
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: u32) -> RayFlags
[src][−]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u32) -> RayFlags
[src][−]
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn is_empty(&self) -> bool
[src][−]
Returns true
if no flags are currently stored.
pub const fn is_all(&self) -> bool
[src][−]
Returns true
if all flags are currently set.
pub const fn intersects(&self, other: RayFlags) -> bool
[src][−]
Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: RayFlags) -> bool
[src][−]
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: RayFlags)
[src][−]
Inserts the specified flags in-place.
pub fn remove(&mut self, other: RayFlags)
[src][−]
Removes the specified flags in-place.
pub fn toggle(&mut self, other: RayFlags)
[src][−]
Toggles the specified flags in-place.
pub fn set(&mut self, other: RayFlags, value: bool)
[src][−]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Binary for RayFlags
[src][+]
impl BitAnd<RayFlags> for RayFlags
[src][+]
impl BitAndAssign<RayFlags> for RayFlags
[src][+]
impl BitOr<RayFlags> for RayFlags
[src][+]
impl BitOrAssign<RayFlags> for RayFlags
[src][+]
impl BitXor<RayFlags> for RayFlags
[src][+]
impl BitXorAssign<RayFlags> for RayFlags
[src][+]
impl Clone for RayFlags
[src][+]
impl Copy for RayFlags
[src]
impl Debug for RayFlags
[src][+]
impl Eq for RayFlags
[src]
impl Extend<RayFlags> for RayFlags
[src][+]
impl FromIterator<RayFlags> for RayFlags
[src][+]
impl Hash for RayFlags
[src][+]
impl LowerHex for RayFlags
[src][+]
impl Not for RayFlags
[src][+]
impl Octal for RayFlags
[src][+]
impl Ord for RayFlags
[src][+]
impl PartialEq<RayFlags> for RayFlags
[src][+]
impl PartialOrd<RayFlags> for RayFlags
[src][+]
impl StructuralEq for RayFlags
[src]
impl StructuralPartialEq for RayFlags
[src]
impl Sub<RayFlags> for RayFlags
[src][+]
impl SubAssign<RayFlags> for RayFlags
[src][+]
impl UpperHex for RayFlags
[src][+]
Auto Trait Implementations
impl RefUnwindSafe for RayFlags
impl Send for RayFlags
impl Sync for RayFlags
impl Unpin for RayFlags
impl UnwindSafe for RayFlags
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,