Struct sierra::Shader [−][src]
pub struct Shader {
pub module: ShaderModule,
pub entry: Cow<'static, str>,
pub stage: ShaderStage,
}
Expand description
Shader module and entry point. Uniquely identifies shader for pipeline.
Fields
module: ShaderModule
Shader module created by Device
from source.
entry: Cow<'static, str>
Name of entry point.
stage: ShaderStage
Stage of this shader.
Implementations
Creates new shader from module using “main” entry point.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
type Error = WrongShaderStage
type Error = WrongShaderStage
The type returned in the event of a conversion error.
Performs the conversion.
type Error = WrongShaderStage
type Error = WrongShaderStage
The type returned in the event of a conversion error.
Performs the conversion.
type Error = WrongShaderStage
type Error = WrongShaderStage
The type returned in the event of a conversion error.
Performs the conversion.
type Error = WrongShaderStage
type Error = WrongShaderStage
The type returned in the event of a conversion error.
Performs the conversion.
type Error = WrongShaderStage
type Error = WrongShaderStage
The type returned in the event of a conversion error.
Performs the conversion.
type Error = WrongShaderStage
type Error = WrongShaderStage
The type returned in the event of a conversion error.
Performs the conversion.
type Error = WrongShaderStage
type Error = WrongShaderStage
The type returned in the event of a conversion error.
Performs the conversion.
type Error = WrongShaderStage
type Error = WrongShaderStage
The type returned in the event of a conversion error.
Performs the conversion.
type Error = WrongShaderStage
type Error = WrongShaderStage
The type returned in the event of a conversion error.
Performs the conversion.
type Error = WrongShaderStage
type Error = WrongShaderStage
The type returned in the event of a conversion error.
Performs the conversion.
type Error = WrongShaderStage
type Error = WrongShaderStage
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Shader
impl !UnwindSafe for Shader
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more