Struct vulkano::shader::ShaderStages
source · pub struct ShaderStages(/* private fields */);
Expand description
A set of ShaderStage
values.
Implementations§
source§impl ShaderStages
impl ShaderStages
pub const VERTEX: Self = _
pub const TESSELLATION_CONTROL: Self = _
pub const TESSELLATION_EVALUATION: Self = _
pub const GEOMETRY: Self = _
pub const FRAGMENT: Self = _
pub const COMPUTE: Self = _
pub const RAYGEN: Self = _
pub const ANY_HIT: Self = _
pub const CLOSEST_HIT: Self = _
pub const MISS: Self = _
pub const INTERSECTION: Self = _
pub const CALLABLE: Self = _
pub const TASK: Self = _
pub const MESH: Self = _
pub const SUBPASS_SHADING: Self = _
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns a ShaderStages
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.
sourcepub fn contains_enum(self, val: ShaderStage) -> bool
pub fn contains_enum(self, val: ShaderStage) -> bool
Returns whether self
contains the flag corresponding to val
.
sourcepub const fn all_graphics() -> ShaderStages
pub const fn all_graphics() -> ShaderStages
Creates a ShaderStages
struct with all graphics stages set to true
.
Trait Implementations§
source§impl BitAnd for ShaderStages
impl BitAnd for ShaderStages
source§impl BitAndAssign for ShaderStages
impl BitAndAssign for ShaderStages
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOr for ShaderStages
impl BitOr for ShaderStages
source§impl BitOrAssign for ShaderStages
impl BitOrAssign for ShaderStages
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXor for ShaderStages
impl BitXor for ShaderStages
source§impl BitXorAssign for ShaderStages
impl BitXorAssign for ShaderStages
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl Clone for ShaderStages
impl Clone for ShaderStages
source§fn clone(&self) -> ShaderStages
fn clone(&self) -> ShaderStages
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 ShaderStages
impl Debug for ShaderStages
source§impl Default for ShaderStages
impl Default for ShaderStages
source§impl From<ShaderStage> for ShaderStages
impl From<ShaderStage> for ShaderStages
source§fn from(val: ShaderStage) -> Self
fn from(val: ShaderStage) -> Self
Converts to this type from the input type.
source§impl From<ShaderStageFlags> for ShaderStages
impl From<ShaderStageFlags> for ShaderStages
source§fn from(val: ShaderStageFlags) -> Self
fn from(val: ShaderStageFlags) -> Self
Converts to this type from the input type.
source§impl From<ShaderStages> for PipelineStages
impl From<ShaderStages> for PipelineStages
source§fn from(stages: ShaderStages) -> PipelineStages
fn from(stages: ShaderStages) -> PipelineStages
Converts to this type from the input type.
source§impl From<ShaderStages> for ShaderStageFlags
impl From<ShaderStages> for ShaderStageFlags
source§fn from(val: ShaderStages) -> Self
fn from(val: ShaderStages) -> Self
Converts to this type from the input type.
source§impl FromIterator<ShaderStage> for ShaderStages
impl FromIterator<ShaderStage> for ShaderStages
source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = ShaderStage>,
fn from_iter<T>(iter: T) -> Selfwhere T: IntoIterator<Item = ShaderStage>,
Creates a value from an iterator. Read more
source§impl Hash for ShaderStages
impl Hash for ShaderStages
source§impl IntoIterator for ShaderStages
impl IntoIterator for ShaderStages
§type Item = ShaderStage
type Item = ShaderStage
The type of the elements being iterated over.
§type IntoIter = Flatten<IntoIter<Option<<ShaderStages as IntoIterator>::Item>, { $ty_bitflags::all_raw().count_ones() as usize }>>
type IntoIter = Flatten<IntoIter<Option<<ShaderStages as IntoIterator>::Item>, { $ty_bitflags::all_raw().count_ones() as usize }>>
Which kind of iterator are we turning this into?
source§impl PartialEq for ShaderStages
impl PartialEq for ShaderStages
source§fn eq(&self, other: &ShaderStages) -> bool
fn eq(&self, other: &ShaderStages) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Sub for ShaderStages
impl Sub for ShaderStages
source§impl SubAssign for ShaderStages
impl SubAssign for ShaderStages
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for ShaderStages
impl Eq for ShaderStages
impl StructuralEq for ShaderStages
impl StructuralPartialEq for ShaderStages
Auto Trait Implementations§
impl RefUnwindSafe for ShaderStages
impl Send for ShaderStages
impl Sync for ShaderStages
impl Unpin for ShaderStages
impl UnwindSafe for ShaderStages
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