[][src]Enum web_glitz::runtime::CreateGraphicsPipelineError

pub enum CreateGraphicsPipelineError {
    ShaderLinkingError(ShaderLinkingError),
    UnsupportedUniformType(ResourceSlotIdentifier, &'static str),
    IncompatibleInputAttributeLayout(IncompatibleVertexInputLayout),
    IncompatibleResources(IncompatibleResources),
    TransformFeedbackTypeMismatch(String),
}

Error returned from [RenderingContext::create_graphics_pipeline].

Variants

ShaderLinkingError(ShaderLinkingError)

Variant that is returned when the programmable shader stages fail to link into a valid program.

Typically the result of a prior stage's outputs not matching the succeeding stage's inputs.

UnsupportedUniformType(ResourceSlotIdentifier, &'static str)

Variant that is returned when any of the programmable shader stages define an uniform type that is not supported by WebGlitz.

Note that WebGlitz does not support non-opaque uniform types (such as float, vec4, mat4) outside of uniform blocks, only opaque (texture/shader types) are supported. All basic non-opaque uniform slots must be declared as part of a uniform block.

IncompatibleInputAttributeLayout(IncompatibleVertexInputLayout)

Variant that is returned when the input attribute layout declared for the pipeline (see [GraphicsPipelineBuilder::vertex_input_layout]) does not match the actual input attribute layout as defined by the shader code.

IncompatibleResources(IncompatibleResources)

Variant that is returned when the resource layout declared for the pipeline (see [GraphicsPipelineBuilder::resource_layout]) does not match the resource layout as defined by the shader code.

TransformFeedbackTypeMismatch(String)

Trait Implementations

impl Debug for CreateGraphicsPipelineError[src]

impl From<CreateProgramError> for CreateGraphicsPipelineError[src]

impl From<IncompatibleResources> for CreateGraphicsPipelineError[src]

impl From<IncompatibleVertexInputLayout> for CreateGraphicsPipelineError[src]

impl From<ShaderLinkingError> for CreateGraphicsPipelineError[src]

Auto Trait Implementations

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<D, T> IntoBuffer<T> for D where
    D: Borrow<T> + 'static,
    T: Copy + 'static, 
[src]

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.