Struct vulkano::shader::ShaderStages
source · pub struct ShaderStages {Show 13 fields
pub vertex: bool,
pub tessellation_control: bool,
pub tessellation_evaluation: bool,
pub geometry: bool,
pub fragment: bool,
pub compute: bool,
pub raygen: bool,
pub any_hit: bool,
pub closest_hit: bool,
pub miss: bool,
pub intersection: bool,
pub callable: bool,
pub _ne: NonExhaustive,
}
Expand description
A set of shader stages.
Fields§
§vertex: bool
§tessellation_control: bool
§tessellation_evaluation: bool
§geometry: bool
§fragment: bool
§compute: bool
§raygen: bool
§any_hit: bool
§closest_hit: bool
§miss: bool
§intersection: bool
§callable: bool
§_ne: NonExhaustive
Implementations§
source§impl ShaderStages
impl ShaderStages
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: Use empty
instead.
pub const fn none() -> Self
empty
instead.Returns 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 set in self
or other
, but not both.
source§impl ShaderStages
impl ShaderStages
sourcepub const fn all_graphics() -> ShaderStages
pub const fn all_graphics() -> ShaderStages
Creates a ShaderStages
struct with all graphics stages set to true
.
sourcepub const fn compute() -> ShaderStages
pub const fn compute() -> ShaderStages
Creates a ShaderStages
struct with the compute stage set to true
.
Trait Implementations§
source§impl BitAnd<ShaderStages> for ShaderStages
impl BitAnd<ShaderStages> for ShaderStages
source§impl BitAndAssign<ShaderStages> for ShaderStages
impl BitAndAssign<ShaderStages> for ShaderStages
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOr<ShaderStages> for ShaderStages
impl BitOr<ShaderStages> for ShaderStages
source§impl BitOrAssign<ShaderStages> for ShaderStages
impl BitOrAssign<ShaderStages> for ShaderStages
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXor<ShaderStages> for ShaderStages
impl BitXor<ShaderStages> for ShaderStages
source§impl BitXorAssign<ShaderStages> for ShaderStages
impl BitXorAssign<ShaderStages> 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 Hash for ShaderStages
impl Hash for ShaderStages
source§impl PartialEq<ShaderStages> for ShaderStages
impl PartialEq<ShaderStages> for ShaderStages
source§fn eq(&self, other: &ShaderStages) -> bool
fn eq(&self, other: &ShaderStages) -> bool
source§impl Sub<ShaderStages> for ShaderStages
impl Sub<ShaderStages> for ShaderStages
source§impl SubAssign<ShaderStages> for ShaderStages
impl SubAssign<ShaderStages> for ShaderStages
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read more