Struct bedrock::ShaderStage
[−]
[src]
pub struct ShaderStage(pub VkShaderStageFlags);
Bitmask specifying a pipeline stage
Methods
impl ShaderStage
[src]
pub const EMPTY: Self
EMPTY: Self = ShaderStage(0)
Empty bits
pub const VERTEX: Self
VERTEX: Self = ShaderStage(VK_SHADER_STAGE_VERTEX_BIT)
The vertex stage
pub const TESSELLATION_CONTROL: Self
TESSELLATION_CONTROL: Self = ShaderStage(VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT)
The tessellation control stage
pub const TESSELLATION_EVALUATION: Self
TESSELLATION_EVALUATION: Self = ShaderStage(VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT)
The tessellation evaluation stage
pub const GEOMETRY: Self
GEOMETRY: Self = ShaderStage(VK_SHADER_STAGE_GEOMETRY_BIT)
The geometry stage
pub const FRAGMENT: Self
FRAGMENT: Self = ShaderStage(VK_SHADER_STAGE_FRAGMENT_BIT)
The fragment stage
pub const COMPUTE: Self
COMPUTE: Self = ShaderStage(VK_SHADER_STAGE_COMPUTE_BIT)
The compute stage
pub const ALL_GRAPHICS: Self
ALL_GRAPHICS: Self = ShaderStage(VK_SHADER_STAGE_ALL_GRAPHICS)
A combination of bits used as shorthand to specify all graphics stages defined above (excluding the compute stage)
pub const ALL: Self
ALL: Self = ShaderStage(VK_SHADER_STAGE_ALL)
A combination of bits used as shorthand to specify all shader stages supported by the device, including all additional stages which are introduced by extensions
pub const TESSELLATION: Self
TESSELLATION: Self = ShaderStage(<Self>::TESSELLATION_CONTROL.0 | <Self>::TESSELLATION_EVALUATION.0)
A combination of tessellation control stage and tessellation evaluation stage
pub fn vertex(&self) -> Self
[src]
The vertex stage
pub fn tessellation_control(&self) -> Self
[src]
The tessellation control stage
pub fn tessellation_evaluation(&self) -> Self
[src]
The tessellation evaluation stage
pub fn geometry(&self) -> Self
[src]
The geometry stage
pub fn fragment(&self) -> Self
[src]
The fragment stage
pub fn compute(&self) -> Self
[src]
The compute stage
pub fn all_graphics(&self) -> Self
[src]
A combination of bits used as shorthand to specify all graphics stages defined above (excluding the compute stage)
pub fn tessellation(&self) -> Self
[src]
A combination of tessellation control stage and tessellation evaluation stage
Trait Implementations
impl Debug for ShaderStage
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for ShaderStage
[src]
fn clone(&self) -> ShaderStage
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for ShaderStage
[src]
fn eq(&self, __arg_0: &ShaderStage) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ShaderStage) -> bool
[src]
This method tests for !=
.