pub enum ShaderStage {
Show 14 variants
Vertex,
Fragment,
Compute,
TesselationControl,
TesselationEvaluation,
Mesh,
Task,
Geometry,
RayGeneration,
ClosestHit,
AnyHit,
Callable,
Miss,
Intersect,
}Expand description
All shader stage supported
Variants§
Vertex
Fragment
Compute
TesselationControl
TesselationEvaluation
Mesh
Task
Geometry
RayGeneration
ClosestHit
AnyHit
Callable
Miss
Intersect
Implementations§
Source§impl ShaderStage
impl ShaderStage
Sourcepub fn from_file_name(file_name: &String) -> Option<ShaderStage>
pub fn from_file_name(file_name: &String) -> Option<ShaderStage>
Get a stage from its filename. Mostly follow glslang guideline
pub const fn as_mask(&self) -> ShaderStageMask
Sourcepub fn graphics() -> ShaderStageMask
pub fn graphics() -> ShaderStageMask
All graphics pipeline stages.
Sourcepub fn compute() -> ShaderStageMask
pub fn compute() -> ShaderStageMask
All compute pipeline stages.
Sourcepub fn raytracing() -> ShaderStageMask
pub fn raytracing() -> ShaderStageMask
All raytracing pipeline stages.
Trait Implementations§
Source§impl Clone for ShaderStage
impl Clone for ShaderStage
Source§fn clone(&self) -> ShaderStage
fn clone(&self) -> ShaderStage
Returns a duplicate 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<'de> Deserialize<'de> for ShaderStage
impl<'de> Deserialize<'de> for ShaderStage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromStr for ShaderStage
impl FromStr for ShaderStage
Source§impl Hash for ShaderStage
impl Hash for ShaderStage
Source§impl Into<glslang_stage_t> for ShaderStage
impl Into<glslang_stage_t> for ShaderStage
Source§fn into(self) -> ShaderStage
fn into(self) -> ShaderStage
Converts this type into the (usually inferred) input type.
Source§impl PartialEq for ShaderStage
impl PartialEq for ShaderStage
Source§impl Serialize for ShaderStage
impl Serialize for ShaderStage
Source§impl ToString for ShaderStage
impl ToString for ShaderStage
impl Copy for ShaderStage
impl Eq for ShaderStage
impl StructuralPartialEq for ShaderStage
Auto Trait Implementations§
impl Freeze for ShaderStage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.