logo
pub unsafe trait VertexDefinition {
    fn definition(
        &self,
        interface: &ShaderInterface
    ) -> Result<VertexInputState, IncompatibleVertexDefinitionError>; }
Expand description

Trait for types that can create a VertexInputState from a ShaderInterface.

Required methods

Builds the vertex definition to use to link this definition to a vertex shader’s input interface.

Implementors