pub struct PipelineKey {
pub shader: ShaderKind,
pub alpha: PipelineAlphaMode,
pub feature_bits: u64,
}Expand description
Compact renderer pipeline selector.
Fields§
§shader: ShaderKindShader family.
alpha: PipelineAlphaModePipeline-level alpha mode.
feature_bits: u64Material feature flags.
Implementations§
Source§impl PipelineKey
impl PipelineKey
Sourcepub const fn new(
shader: ShaderKind,
alpha: PipelineAlphaMode,
feature_bits: u64,
) -> Self
pub const fn new( shader: ShaderKind, alpha: PipelineAlphaMode, feature_bits: u64, ) -> Self
Creates a pipeline key.
Sourcepub const fn with_feature(self, feature: u64) -> Self
pub const fn with_feature(self, feature: u64) -> Self
Returns a key with one feature flag enabled.
Sourcepub const fn has_feature(self, feature: u64) -> bool
pub const fn has_feature(self, feature: u64) -> bool
Returns whether the feature flag is enabled.
Trait Implementations§
Source§impl Clone for PipelineKey
impl Clone for PipelineKey
Source§fn clone(&self) -> PipelineKey
fn clone(&self) -> PipelineKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PipelineKey
Source§impl Debug for PipelineKey
impl Debug for PipelineKey
Source§impl Default for PipelineKey
impl Default for PipelineKey
Source§fn default() -> PipelineKey
fn default() -> PipelineKey
Returns the “default value” for a type. Read more
impl Eq for PipelineKey
Source§impl Hash for PipelineKey
impl Hash for PipelineKey
Source§impl PartialEq for PipelineKey
impl PartialEq for PipelineKey
impl StructuralPartialEq for PipelineKey
Auto Trait Implementations§
impl Freeze for PipelineKey
impl RefUnwindSafe for PipelineKey
impl Send for PipelineKey
impl Sync for PipelineKey
impl Unpin for PipelineKey
impl UnsafeUnpin for PipelineKey
impl UnwindSafe for PipelineKey
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