Enum vulkano::shader::ShaderStage
source · #[non_exhaustive]#[repr(u32)]pub enum ShaderStage {
Show 15 variants
Vertex = 1,
TessellationControl = 2,
TessellationEvaluation = 4,
Geometry = 8,
Fragment = 16,
Compute = 32,
Raygen = 256,
AnyHit = 512,
ClosestHit = 1_024,
Miss = 2_048,
Intersection = 4_096,
Callable = 8_192,
Task = 64,
Mesh = 128,
SubpassShading = 16_384,
}
Expand description
A shader stage within a pipeline.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Vertex = 1
TessellationControl = 2
TessellationEvaluation = 4
Geometry = 8
Fragment = 16
Compute = 32
Raygen = 256
AnyHit = 512
ClosestHit = 1_024
Miss = 2_048
Intersection = 4_096
Callable = 8_192
Task = 64
Mesh = 128
SubpassShading = 16_384
Trait Implementations§
source§impl Clone for ShaderStage
impl Clone for ShaderStage
source§fn clone(&self) -> ShaderStage
fn clone(&self) -> ShaderStage
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 ShaderStage
impl Debug for ShaderStage
source§impl From<ExecutionModel> for ShaderStage
impl From<ExecutionModel> for ShaderStage
source§fn from(value: ExecutionModel) -> Self
fn from(value: ExecutionModel) -> Self
Converts to this type from the input type.
source§impl From<ShaderStage> for ShaderStageFlags
impl From<ShaderStage> for ShaderStageFlags
source§fn from(val: ShaderStage) -> Self
fn from(val: ShaderStage) -> Self
Converts to this type from the input type.
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 FromIterator<ShaderStage> for ShaderStages
impl FromIterator<ShaderStage> for ShaderStages
source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = ShaderStage>,
fn from_iter<T>(iter: T) -> Selfwhere T: IntoIterator<Item = ShaderStage>,
Creates a value from an iterator. Read more
source§impl Hash for ShaderStage
impl Hash for ShaderStage
source§impl PartialEq for ShaderStage
impl PartialEq for ShaderStage
source§fn eq(&self, other: &ShaderStage) -> bool
fn eq(&self, other: &ShaderStage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<ShaderStageFlags> for ShaderStage
impl TryFrom<ShaderStageFlags> for ShaderStage
impl Copy for ShaderStage
impl Eq for ShaderStage
impl StructuralEq for ShaderStage
impl StructuralPartialEq for ShaderStage
Auto Trait Implementations§
impl RefUnwindSafe for ShaderStage
impl Send for ShaderStage
impl Sync for ShaderStage
impl Unpin for ShaderStage
impl UnwindSafe for ShaderStage
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more