Struct vulkano::descriptor::descriptor::ShaderStages [−][src]
pub struct ShaderStages { pub vertex: bool, pub tessellation_control: bool, pub tessellation_evaluation: bool, pub geometry: bool, pub fragment: bool, pub compute: bool, }
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.
Methods
impl ShaderStages
[src]
impl ShaderStages
pub fn all() -> ShaderStages
[src]
pub fn all() -> ShaderStages
Creates a ShaderStages
struct will all stages set to true
.
pub fn none() -> ShaderStages
[src]
pub fn none() -> ShaderStages
Creates a ShaderStages
struct will all stages set to false
.
pub fn all_graphics() -> ShaderStages
[src]
pub fn all_graphics() -> ShaderStages
Creates a ShaderStages
struct with all graphics stages set to true
.
pub fn compute() -> ShaderStages
[src]
pub fn compute() -> ShaderStages
Creates a ShaderStages
struct with the compute stage set to true
.
pub fn is_superset_of(
&self,
other: &ShaderStages
) -> Result<(), ShaderStagesSupersetError>
[src]
pub fn is_superset_of(
&self,
other: &ShaderStages
) -> Result<(), ShaderStagesSupersetError>
Checks whether we have more stages enabled than other
.
pub fn intersects(&self, other: &ShaderStages) -> bool
[src]
pub fn intersects(&self, other: &ShaderStages) -> bool
Checks whether any of the stages in self
are also present in other
.
Trait Implementations
impl Debug for ShaderStages
[src]
impl Debug for ShaderStages
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for ShaderStages
[src]
impl Copy for ShaderStages
impl Clone for ShaderStages
[src]
impl Clone for ShaderStages
fn clone(&self) -> ShaderStages
[src]
fn clone(&self) -> ShaderStages
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for ShaderStages
[src]
impl PartialEq for ShaderStages
fn eq(&self, other: &ShaderStages) -> bool
[src]
fn eq(&self, other: &ShaderStages) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ShaderStages) -> bool
[src]
fn ne(&self, other: &ShaderStages) -> bool
This method tests for !=
.
impl Eq for ShaderStages
[src]
impl Eq for ShaderStages
impl BitOr for ShaderStages
[src]
impl BitOr for ShaderStages
type Output = ShaderStages
The resulting type after applying the |
operator.
fn bitor(self, other: ShaderStages) -> ShaderStages
[src]
fn bitor(self, other: ShaderStages) -> ShaderStages
Performs the |
operation.
impl From<ShaderStages> for PipelineStages
[src]
impl From<ShaderStages> for PipelineStages
fn from(stages: ShaderStages) -> PipelineStages
[src]
fn from(stages: ShaderStages) -> PipelineStages
Performs the conversion.
Auto Trait Implementations
impl Send for ShaderStages
impl Send for ShaderStages
impl Sync for ShaderStages
impl Sync for ShaderStages