Struct vulkano::descriptor::descriptor::ShaderStages
source · pub struct ShaderStages {
pub vertex: bool,
pub tessellation_control: bool,
pub tessellation_evaluation: bool,
pub geometry: bool,
pub fragment: bool,
pub compute: bool,
}
Expand description
Describes which shader stages have access to a descriptor.
Fields
vertex: bool
True
means that the descriptor will be used by the vertex shader.
tessellation_control: bool
True
means that the descriptor will be used by the tessellation control shader.
tessellation_evaluation: bool
True
means that the descriptor will be used by the tessellation evaluation shader.
geometry: bool
True
means that the descriptor will be used by the geometry shader.
fragment: bool
True
means that the descriptor will be used by the fragment shader.
compute: bool
True
means that the descriptor will be used by the compute shader.
Implementations
sourceimpl ShaderStages
impl ShaderStages
sourcepub fn all() -> ShaderStages
pub fn all() -> ShaderStages
Creates a ShaderStages
struct will all stages set to true
.
sourcepub fn none() -> ShaderStages
pub fn none() -> ShaderStages
Creates a ShaderStages
struct will all stages set to false
.
sourcepub fn all_graphics() -> ShaderStages
pub fn all_graphics() -> ShaderStages
Creates a ShaderStages
struct with all graphics stages set to true
.
sourcepub fn compute() -> ShaderStages
pub fn compute() -> ShaderStages
Creates a ShaderStages
struct with the compute stage set to true
.
sourcepub fn is_superset_of(
&self,
other: &ShaderStages
) -> Result<(), ShaderStagesSupersetError>
pub fn is_superset_of(
&self,
other: &ShaderStages
) -> Result<(), ShaderStagesSupersetError>
Checks whether we have more stages enabled than other
.
sourcepub fn intersects(&self, other: &ShaderStages) -> bool
pub fn intersects(&self, other: &ShaderStages) -> bool
Checks whether any of the stages in self
are also present in other
.
Trait Implementations
sourceimpl BitOr<ShaderStages> for ShaderStages
impl BitOr<ShaderStages> for ShaderStages
type Output = ShaderStages
type Output = ShaderStages
|
operator.sourcefn bitor(self, other: ShaderStages) -> ShaderStages
fn bitor(self, other: ShaderStages) -> ShaderStages
|
operation. Read moresourceimpl Clone for ShaderStages
impl Clone for ShaderStages
sourcefn clone(&self) -> ShaderStages
fn clone(&self) -> ShaderStages
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more