Trait vulkano::pipeline::graphics::vertex_input::VertexDefinition [−][src]
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
fn definition(
&self,
interface: &ShaderInterface
) -> Result<VertexInputState, IncompatibleVertexDefinitionError>
fn definition(
&self,
interface: &ShaderInterface
) -> Result<VertexInputState, IncompatibleVertexDefinitionError>
Builds the vertex definition to use to link this definition to a vertex shader’s input interface.