[−][src]Struct rendy_core::hal::pso::PipelineCreationFlags
Pipeline creation flags.
Implementations
impl PipelineCreationFlags
[src][−]
pub const DISABLE_OPTIMIZATION: PipelineCreationFlags
[src][−][−]
Disable pipeline optimizations.
May speedup pipeline creation.
pub const ALLOW_DERIVATIVES: PipelineCreationFlags
[src][−][−]
Allow derivatives (children) of the pipeline.
Must be set when pipelines set the pipeline as base.
pub const fn empty() -> PipelineCreationFlags
[src][−]
Returns an empty set of flags
pub const fn all() -> PipelineCreationFlags
[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<PipelineCreationFlags>
[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) -> PipelineCreationFlags
[src][−]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u32) -> PipelineCreationFlags
[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: PipelineCreationFlags) -> bool
[src][−]
Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: PipelineCreationFlags) -> bool
[src][−]
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: PipelineCreationFlags)
[src][−]
Inserts the specified flags in-place.
pub fn remove(&mut self, other: PipelineCreationFlags)
[src][−]
Removes the specified flags in-place.
pub fn toggle(&mut self, other: PipelineCreationFlags)
[src][−]
Toggles the specified flags in-place.
pub fn set(&mut self, other: PipelineCreationFlags, value: bool)
[src][−]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Binary for PipelineCreationFlags
[src][+]
impl BitAnd<PipelineCreationFlags> for PipelineCreationFlags
[src][+]
impl BitAndAssign<PipelineCreationFlags> for PipelineCreationFlags
[src][+]
impl BitOr<PipelineCreationFlags> for PipelineCreationFlags
[src][+]
impl BitOrAssign<PipelineCreationFlags> for PipelineCreationFlags
[src][+]
impl BitXor<PipelineCreationFlags> for PipelineCreationFlags
[src][+]
impl BitXorAssign<PipelineCreationFlags> for PipelineCreationFlags
[src][+]
impl Clone for PipelineCreationFlags
[src][+]
impl Copy for PipelineCreationFlags
[src]
impl Debug for PipelineCreationFlags
[src][+]
impl Eq for PipelineCreationFlags
[src]
impl Extend<PipelineCreationFlags> for PipelineCreationFlags
[src][+]
impl FromIterator<PipelineCreationFlags> for PipelineCreationFlags
[src][+]
impl Hash for PipelineCreationFlags
[src][+]
impl LowerHex for PipelineCreationFlags
[src][+]
impl Not for PipelineCreationFlags
[src][+]
impl Octal for PipelineCreationFlags
[src][+]
impl Ord for PipelineCreationFlags
[src][+]
impl PartialEq<PipelineCreationFlags> for PipelineCreationFlags
[src][+]
impl PartialOrd<PipelineCreationFlags> for PipelineCreationFlags
[src][+]
impl StructuralEq for PipelineCreationFlags
[src]
impl StructuralPartialEq for PipelineCreationFlags
[src]
impl Sub<PipelineCreationFlags> for PipelineCreationFlags
[src][+]
impl SubAssign<PipelineCreationFlags> for PipelineCreationFlags
[src][+]
impl UpperHex for PipelineCreationFlags
[src][+]
Auto Trait Implementations
impl RefUnwindSafe for PipelineCreationFlags
impl Send for PipelineCreationFlags
impl Sync for PipelineCreationFlags
impl Unpin for PipelineCreationFlags
impl UnwindSafe for PipelineCreationFlags
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>,