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]
fn all() -> ShaderStages
Creates a ShaderStages
struct will all stages set to true
.
fn none() -> ShaderStages
Creates a ShaderStages
struct will all stages set to false
.
fn all_graphics() -> ShaderStages
Creates a ShaderStages
struct with all graphics stages set to true
.
fn compute() -> ShaderStages
Creates a ShaderStages
struct with the compute stage set to true
.
fn is_superset_of(&self, other: &ShaderStages) -> bool
Checks whether we have more stages enabled than other
.
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 Copy for ShaderStages
[src]
impl Clone for ShaderStages
[src]
fn clone(&self) -> ShaderStages
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for ShaderStages
[src]
fn eq(&self, __arg_0: &ShaderStages) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ShaderStages) -> bool
This method tests for !=
.
impl Eq for ShaderStages
[src]
impl BitOr for ShaderStages
[src]
type Output = ShaderStages
The resulting type after applying the |
operator
fn bitor(self, other: ShaderStages) -> ShaderStages
The method for the |
operator