Struct vulkano::pipeline::vertex::BuffersDefinition [−][src]
pub struct BuffersDefinition(_);
Expand description
A vertex definition for any number of vertex and instance buffers.
Implementations
Adds a new vertex buffer containing elements of type V
to the definition.
Adds a new instance buffer containing elements of type V
to the definition.
Adds a new instance buffer containing elements of type V
to the definition, with the
specified input rate divisor.
This requires the
vertex_attribute_instance_rate_divisor
feature has been enabled on the device, unless divisor
is 1.
divisor
can be 0 if the
vertex_attribute_instance_rate_zero_divisor
feature is also enabled. This means that every vertex will use the same vertex and instance
data.
Trait Implementations
Returns the “default value” for a type. Read more
fn definition(
&self,
interface: &ShaderInterface
) -> Result<VertexInput, IncompatibleVertexDefinitionError>
fn definition(
&self,
interface: &ShaderInterface
) -> Result<VertexInput, IncompatibleVertexDefinitionError>
Builds the vertex definition to use to link this definition to a vertex shader’s input interface. Read more
impl<B1, B2> VertexSource<(B1, B2)> for BuffersDefinition where
B1: BufferAccess + Send + Sync + 'static,
B2: BufferAccess + Send + Sync + 'static,
impl<B1, B2> VertexSource<(B1, B2)> for BuffersDefinition where
B1: BufferAccess + Send + Sync + 'static,
B2: BufferAccess + Send + Sync + 'static,
impl VertexSource<Vec<Arc<dyn BufferAccess + Sync + Send + 'static>, Global>> for BuffersDefinition
impl VertexSource<Vec<Arc<dyn BufferAccess + Sync + Send + 'static>, Global>> for BuffersDefinition
Auto Trait Implementations
impl RefUnwindSafe for BuffersDefinition
impl Send for BuffersDefinition
impl Sync for BuffersDefinition
impl Unpin for BuffersDefinition
impl UnwindSafe for BuffersDefinition
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.