Trait vulkano::pipeline::graphics::vertex_input::VertexDefinition
source · pub unsafe trait VertexDefinition {
// Required method
fn definition(
&self,
interface: &ShaderInterface
) -> Result<VertexInputState, Box<ValidationError>>;
}
Expand description
Trait for types that can create a VertexInputState
from a ShaderInterface
.
Required Methods§
sourcefn definition(
&self,
interface: &ShaderInterface
) -> Result<VertexInputState, Box<ValidationError>>
fn definition( &self, interface: &ShaderInterface ) -> Result<VertexInputState, Box<ValidationError>>
Builds the VertexInputState
for the provided interface
.