Struct vulkanalia::vk::PipelineStageFlags2
source · pub struct PipelineStageFlags2 { /* private fields */ }
Expand description
Implementations§
source§impl PipelineStageFlags2
impl PipelineStageFlags2
pub const NONE: PipelineStageFlags2 = _
pub const TOP_OF_PIPE: PipelineStageFlags2 = _
pub const DRAW_INDIRECT: PipelineStageFlags2 = _
pub const VERTEX_INPUT: PipelineStageFlags2 = _
pub const VERTEX_SHADER: PipelineStageFlags2 = _
pub const TESSELLATION_CONTROL_SHADER: PipelineStageFlags2 = _
pub const TESSELLATION_EVALUATION_SHADER: PipelineStageFlags2 = _
pub const GEOMETRY_SHADER: PipelineStageFlags2 = _
pub const FRAGMENT_SHADER: PipelineStageFlags2 = _
pub const EARLY_FRAGMENT_TESTS: PipelineStageFlags2 = _
pub const LATE_FRAGMENT_TESTS: PipelineStageFlags2 = _
pub const COLOR_ATTACHMENT_OUTPUT: PipelineStageFlags2 = _
pub const COMPUTE_SHADER: PipelineStageFlags2 = _
pub const ALL_TRANSFER: PipelineStageFlags2 = _
pub const BOTTOM_OF_PIPE: PipelineStageFlags2 = _
pub const HOST: PipelineStageFlags2 = _
pub const ALL_GRAPHICS: PipelineStageFlags2 = _
pub const ALL_COMMANDS: PipelineStageFlags2 = _
pub const COMMAND_PREPROCESS_NV: PipelineStageFlags2 = _
pub const CONDITIONAL_RENDERING_EXT: PipelineStageFlags2 = _
pub const TASK_SHADER_EXT: PipelineStageFlags2 = _
pub const MESH_SHADER_EXT: PipelineStageFlags2 = _
pub const RAY_TRACING_SHADER_KHR: PipelineStageFlags2 = _
pub const FRAGMENT_SHADING_RATE_ATTACHMENT_KHR: PipelineStageFlags2 = _
pub const FRAGMENT_DENSITY_PROCESS_EXT: PipelineStageFlags2 = _
pub const TRANSFORM_FEEDBACK_EXT: PipelineStageFlags2 = _
pub const ACCELERATION_STRUCTURE_BUILD_KHR: PipelineStageFlags2 = _
pub const VIDEO_DECODE_KHR: PipelineStageFlags2 = _
pub const VIDEO_ENCODE_KHR: PipelineStageFlags2 = _
pub const ACCELERATION_STRUCTURE_COPY_KHR: PipelineStageFlags2 = _
pub const OPTICAL_FLOW_NV: PipelineStageFlags2 = _
pub const MICROMAP_BUILD_EXT: PipelineStageFlags2 = _
pub const COPY: PipelineStageFlags2 = _
pub const RESOLVE: PipelineStageFlags2 = _
pub const BLIT: PipelineStageFlags2 = _
pub const CLEAR: PipelineStageFlags2 = _
pub const INDEX_INPUT: PipelineStageFlags2 = _
pub const VERTEX_ATTRIBUTE_INPUT: PipelineStageFlags2 = _
pub const PRE_RASTERIZATION_SHADERS: PipelineStageFlags2 = _
pub const SUBPASS_SHADER_HUAWEI: PipelineStageFlags2 = _
pub const INVOCATION_MASK_HUAWEI: PipelineStageFlags2 = _
pub const CLUSTER_CULLING_SHADER_HUAWEI: PipelineStageFlags2 = _
sourcepub const fn empty() -> PipelineStageFlags2
pub const fn empty() -> PipelineStageFlags2
Returns an empty set of flags.
sourcepub const fn all() -> PipelineStageFlags2
pub const fn all() -> PipelineStageFlags2
Returns the set containing all flags.
sourcepub const fn from_bits(bits: u64) -> Option<PipelineStageFlags2>
pub const fn from_bits(bits: u64) -> Option<PipelineStageFlags2>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
sourcepub const fn from_bits_truncate(bits: u64) -> PipelineStageFlags2
pub const fn from_bits_truncate(bits: u64) -> PipelineStageFlags2
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: u64) -> PipelineStageFlags2
pub const unsafe fn from_bits_unchecked(bits: u64) -> PipelineStageFlags2
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
§Safety
The caller of the bitflags!
macro can chose to allow or
disallow extra bits for their bitflags type.
The caller of from_bits_unchecked()
has to ensure that
all bits correspond to a defined flag or that extra bits
are valid for this bitflags type.
sourcepub const fn intersects(&self, other: PipelineStageFlags2) -> bool
pub const fn intersects(&self, other: PipelineStageFlags2) -> bool
Returns true
if there are flags common to both self
and other
.
sourcepub const fn contains(&self, other: PipelineStageFlags2) -> bool
pub const fn contains(&self, other: PipelineStageFlags2) -> bool
Returns true
if all of the flags in other
are contained within self
.
sourcepub fn insert(&mut self, other: PipelineStageFlags2)
pub fn insert(&mut self, other: PipelineStageFlags2)
Inserts the specified flags in-place.
sourcepub fn remove(&mut self, other: PipelineStageFlags2)
pub fn remove(&mut self, other: PipelineStageFlags2)
Removes the specified flags in-place.
sourcepub fn toggle(&mut self, other: PipelineStageFlags2)
pub fn toggle(&mut self, other: PipelineStageFlags2)
Toggles the specified flags in-place.
sourcepub fn set(&mut self, other: PipelineStageFlags2, value: bool)
pub fn set(&mut self, other: PipelineStageFlags2, value: bool)
Inserts or removes the specified flags depending on the passed value.
sourcepub const fn intersection(
self,
other: PipelineStageFlags2
) -> PipelineStageFlags2
pub const fn intersection( self, other: PipelineStageFlags2 ) -> PipelineStageFlags2
Returns the intersection between the flags in self
and
other
.
Specifically, the returned set contains only the flags which are
present in both self
and other
.
This is equivalent to using the &
operator (e.g.
ops::BitAnd
), as in flags & other
.
sourcepub const fn union(self, other: PipelineStageFlags2) -> PipelineStageFlags2
pub const fn union(self, other: PipelineStageFlags2) -> PipelineStageFlags2
Returns the union of between the flags in self
and other
.
Specifically, the returned set contains all flags which are
present in either self
or other
, including any which are
present in both (see Self::symmetric_difference
if that
is undesirable).
This is equivalent to using the |
operator (e.g.
ops::BitOr
), as in flags | other
.
sourcepub const fn difference(self, other: PipelineStageFlags2) -> PipelineStageFlags2
pub const fn difference(self, other: PipelineStageFlags2) -> PipelineStageFlags2
Returns the difference between the flags in self
and other
.
Specifically, the returned set contains all flags present in
self
, except for the ones present in other
.
It is also conceptually equivalent to the “bit-clear” operation:
flags & !other
(and this syntax is also supported).
This is equivalent to using the -
operator (e.g.
ops::Sub
), as in flags - other
.
sourcepub const fn symmetric_difference(
self,
other: PipelineStageFlags2
) -> PipelineStageFlags2
pub const fn symmetric_difference( self, other: PipelineStageFlags2 ) -> PipelineStageFlags2
Returns the symmetric difference between the flags
in self
and other
.
Specifically, the returned set contains the flags present which
are present in self
or other
, but that are not present in
both. Equivalently, it contains the flags present in exactly
one of the sets self
and other
.
This is equivalent to using the ^
operator (e.g.
ops::BitXor
), as in flags ^ other
.
sourcepub const fn complement(self) -> PipelineStageFlags2
pub const fn complement(self) -> PipelineStageFlags2
Returns the complement of this set of flags.
Specifically, the returned set contains all the flags which are
not set in self
, but which are allowed for this type.
Alternatively, it can be thought of as the set difference
between Self::all()
and self
(e.g. Self::all() - self
)
This is equivalent to using the !
operator (e.g.
ops::Not
), as in !flags
.
Trait Implementations§
source§impl Binary for PipelineStageFlags2
impl Binary for PipelineStageFlags2
source§impl BitAnd for PipelineStageFlags2
impl BitAnd for PipelineStageFlags2
source§fn bitand(self, other: PipelineStageFlags2) -> PipelineStageFlags2
fn bitand(self, other: PipelineStageFlags2) -> PipelineStageFlags2
Returns the intersection between the two sets of flags.
§type Output = PipelineStageFlags2
type Output = PipelineStageFlags2
&
operator.source§impl BitAndAssign for PipelineStageFlags2
impl BitAndAssign for PipelineStageFlags2
source§fn bitand_assign(&mut self, other: PipelineStageFlags2)
fn bitand_assign(&mut self, other: PipelineStageFlags2)
Disables all flags disabled in the set.
source§impl BitOr for PipelineStageFlags2
impl BitOr for PipelineStageFlags2
source§fn bitor(self, other: PipelineStageFlags2) -> PipelineStageFlags2
fn bitor(self, other: PipelineStageFlags2) -> PipelineStageFlags2
Returns the union of the two sets of flags.
§type Output = PipelineStageFlags2
type Output = PipelineStageFlags2
|
operator.source§impl BitOrAssign for PipelineStageFlags2
impl BitOrAssign for PipelineStageFlags2
source§fn bitor_assign(&mut self, other: PipelineStageFlags2)
fn bitor_assign(&mut self, other: PipelineStageFlags2)
Adds the set of flags.
source§impl BitXor for PipelineStageFlags2
impl BitXor for PipelineStageFlags2
source§fn bitxor(self, other: PipelineStageFlags2) -> PipelineStageFlags2
fn bitxor(self, other: PipelineStageFlags2) -> PipelineStageFlags2
Returns the left flags, but with all the right flags toggled.
§type Output = PipelineStageFlags2
type Output = PipelineStageFlags2
^
operator.source§impl BitXorAssign for PipelineStageFlags2
impl BitXorAssign for PipelineStageFlags2
source§fn bitxor_assign(&mut self, other: PipelineStageFlags2)
fn bitxor_assign(&mut self, other: PipelineStageFlags2)
Toggles the set of flags.
source§impl Clone for PipelineStageFlags2
impl Clone for PipelineStageFlags2
source§fn clone(&self) -> PipelineStageFlags2
fn clone(&self) -> PipelineStageFlags2
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PipelineStageFlags2
impl Debug for PipelineStageFlags2
source§impl Default for PipelineStageFlags2
impl Default for PipelineStageFlags2
source§fn default() -> PipelineStageFlags2
fn default() -> PipelineStageFlags2
source§impl Extend<PipelineStageFlags2> for PipelineStageFlags2
impl Extend<PipelineStageFlags2> for PipelineStageFlags2
source§fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = PipelineStageFlags2>,
fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = PipelineStageFlags2>,
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)source§impl FromIterator<PipelineStageFlags2> for PipelineStageFlags2
impl FromIterator<PipelineStageFlags2> for PipelineStageFlags2
source§fn from_iter<T>(iterator: T) -> PipelineStageFlags2where
T: IntoIterator<Item = PipelineStageFlags2>,
fn from_iter<T>(iterator: T) -> PipelineStageFlags2where
T: IntoIterator<Item = PipelineStageFlags2>,
source§impl Hash for PipelineStageFlags2
impl Hash for PipelineStageFlags2
source§impl LowerHex for PipelineStageFlags2
impl LowerHex for PipelineStageFlags2
source§impl Not for PipelineStageFlags2
impl Not for PipelineStageFlags2
source§fn not(self) -> PipelineStageFlags2
fn not(self) -> PipelineStageFlags2
Returns the complement of this set of flags.
§type Output = PipelineStageFlags2
type Output = PipelineStageFlags2
!
operator.source§impl Octal for PipelineStageFlags2
impl Octal for PipelineStageFlags2
source§impl Ord for PipelineStageFlags2
impl Ord for PipelineStageFlags2
source§fn cmp(&self, other: &PipelineStageFlags2) -> Ordering
fn cmp(&self, other: &PipelineStageFlags2) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for PipelineStageFlags2
impl PartialEq for PipelineStageFlags2
source§fn eq(&self, other: &PipelineStageFlags2) -> bool
fn eq(&self, other: &PipelineStageFlags2) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PipelineStageFlags2
impl PartialOrd for PipelineStageFlags2
source§fn partial_cmp(&self, other: &PipelineStageFlags2) -> Option<Ordering>
fn partial_cmp(&self, other: &PipelineStageFlags2) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl Sub for PipelineStageFlags2
impl Sub for PipelineStageFlags2
source§fn sub(self, other: PipelineStageFlags2) -> PipelineStageFlags2
fn sub(self, other: PipelineStageFlags2) -> PipelineStageFlags2
Returns the set difference of the two sets of flags.
§type Output = PipelineStageFlags2
type Output = PipelineStageFlags2
-
operator.source§impl SubAssign for PipelineStageFlags2
impl SubAssign for PipelineStageFlags2
source§fn sub_assign(&mut self, other: PipelineStageFlags2)
fn sub_assign(&mut self, other: PipelineStageFlags2)
Disables all flags enabled in the set.