Struct sierra::Shader [−][src]
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]
fn from(shader: AnyHitShader) -> Shader
[src]
impl From<ClosestHitShader> for Shader
[src]
fn from(shader: ClosestHitShader) -> Shader
[src]
impl From<ComputeShader> for Shader
[src]
fn from(shader: ComputeShader) -> Shader
[src]
impl From<FragmentShader> for Shader
[src]
fn from(shader: FragmentShader) -> Shader
[src]
impl From<GeometryShader> for Shader
[src]
fn from(shader: GeometryShader) -> Shader
[src]
impl From<IntersectionShader> for Shader
[src]
fn from(shader: IntersectionShader) -> Shader
[src]
impl From<MissShader> for Shader
[src]
fn from(shader: MissShader) -> Shader
[src]
impl From<RaygenShader> for Shader
[src]
fn from(shader: RaygenShader) -> Shader
[src]
impl From<TessellationControlShader> for Shader
[src]
fn from(shader: TessellationControlShader) -> Shader
[src]
impl From<TessellationEvaluationShader> for Shader
[src]
fn from(shader: TessellationEvaluationShader) -> Shader
[src]
impl From<VertexShader> for Shader
[src]
fn from(shader: VertexShader) -> Shader
[src]
impl Hash for Shader
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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.
fn try_from(shader: Shader) -> Result<Self, WrongShaderStage>
[src]
impl TryFrom<Shader> for TessellationControlShader
[src]
type Error = WrongShaderStage
The type returned in the event of a conversion error.
fn try_from(shader: Shader) -> Result<Self, WrongShaderStage>
[src]
impl TryFrom<Shader> for IntersectionShader
[src]
type Error = WrongShaderStage
The type returned in the event of a conversion error.
fn try_from(shader: Shader) -> Result<Self, WrongShaderStage>
[src]
impl TryFrom<Shader> for TessellationEvaluationShader
[src]
type Error = WrongShaderStage
The type returned in the event of a conversion error.
fn try_from(shader: Shader) -> Result<Self, WrongShaderStage>
[src]
impl TryFrom<Shader> for GeometryShader
[src]
type Error = WrongShaderStage
The type returned in the event of a conversion error.
fn try_from(shader: Shader) -> Result<Self, WrongShaderStage>
[src]
impl TryFrom<Shader> for FragmentShader
[src]
type Error = WrongShaderStage
The type returned in the event of a conversion error.
fn try_from(shader: Shader) -> Result<Self, WrongShaderStage>
[src]
impl TryFrom<Shader> for ComputeShader
[src]
type Error = WrongShaderStage
The type returned in the event of a conversion error.
fn try_from(shader: Shader) -> Result<Self, WrongShaderStage>
[src]
impl TryFrom<Shader> for RaygenShader
[src]
type Error = WrongShaderStage
The type returned in the event of a conversion error.
fn try_from(shader: Shader) -> Result<Self, WrongShaderStage>
[src]
impl TryFrom<Shader> for AnyHitShader
[src]
type Error = WrongShaderStage
The type returned in the event of a conversion error.
fn try_from(shader: Shader) -> Result<Self, WrongShaderStage>
[src]
impl TryFrom<Shader> for ClosestHitShader
[src]
type Error = WrongShaderStage
The type returned in the event of a conversion error.
fn try_from(shader: Shader) -> Result<Self, WrongShaderStage>
[src]
impl TryFrom<Shader> for MissShader
[src]
type Error = WrongShaderStage
The type returned in the event of a conversion error.
fn try_from(shader: Shader) -> Result<Self, WrongShaderStage>
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,