Struct sierra::Shader[][src]

pub struct Shader {
    pub module: ShaderModule,
    pub entry: Box<str>,
    pub stage: ShaderStage,
}

Shader module and entry point. Uniquely identifies shader for pipeline.

Fields

module: ShaderModule

Shader module created by Device from source.

entry: Box<str>

Name of entry point.

stage: ShaderStage

Stage of this shader.

Implementations

impl Shader[src]

pub fn with_main(module: ShaderModule, stage: ShaderStage) -> Self[src]

Creates new shader from module using “main” entry point.

pub fn module(&self) -> &ShaderModule[src]

pub fn entry(&self) -> &str[src]

pub fn stage(&self) -> ShaderStage[src]

Trait Implementations

impl Clone for Shader[src]

impl Debug for Shader[src]

impl Eq for Shader[src]

impl From<AnyHitShader> for Shader[src]

impl From<ClosestHitShader> for Shader[src]

impl From<ComputeShader> for Shader[src]

impl From<FragmentShader> for Shader[src]

impl From<GeometryShader> for Shader[src]

impl From<IntersectionShader> for Shader[src]

impl From<MissShader> for Shader[src]

impl From<RaygenShader> for Shader[src]

impl From<TessellationControlShader> for Shader[src]

impl From<TessellationEvaluationShader> for Shader[src]

impl From<VertexShader> for Shader[src]

impl Hash for Shader[src]

impl PartialEq<Shader> for Shader[src]

impl StructuralEq for Shader[src]

impl StructuralPartialEq for Shader[src]

impl TryFrom<Shader> for VertexShader[src]

type Error = WrongShaderStage

The type returned in the event of a conversion error.

impl TryFrom<Shader> for TessellationControlShader[src]

type Error = WrongShaderStage

The type returned in the event of a conversion error.

impl TryFrom<Shader> for IntersectionShader[src]

type Error = WrongShaderStage

The type returned in the event of a conversion error.

impl TryFrom<Shader> for TessellationEvaluationShader[src]

type Error = WrongShaderStage

The type returned in the event of a conversion error.

impl TryFrom<Shader> for GeometryShader[src]

type Error = WrongShaderStage

The type returned in the event of a conversion error.

impl TryFrom<Shader> for FragmentShader[src]

type Error = WrongShaderStage

The type returned in the event of a conversion error.

impl TryFrom<Shader> for ComputeShader[src]

type Error = WrongShaderStage

The type returned in the event of a conversion error.

impl TryFrom<Shader> for RaygenShader[src]

type Error = WrongShaderStage

The type returned in the event of a conversion error.

impl TryFrom<Shader> for AnyHitShader[src]

type Error = WrongShaderStage

The type returned in the event of a conversion error.

impl TryFrom<Shader> for ClosestHitShader[src]

type Error = WrongShaderStage

The type returned in the event of a conversion error.

impl TryFrom<Shader> for MissShader[src]

type Error = WrongShaderStage

The type returned in the event of a conversion error.

Auto Trait Implementations

impl !RefUnwindSafe for Shader

impl Send for Shader

impl Sync for Shader

impl Unpin for Shader

impl !UnwindSafe for Shader

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.