pub struct Bindings {
    pub vertex_buffers: Vec<Buffer>,
    pub index_buffer: Buffer,
    pub images: Vec<Texture>,
}
Expand description

Geometry bindings

Fields

vertex_buffers: Vec<Buffer>

Vertex buffers. Data contained in the buffer must match layout specified in the Pipeline.

Most commonly vertex buffer will contain (x,y,z,w) coordinates of the vertex in 3d space, as well as (u,v) coordinates that map the vertex to some position in the corresponding Texture.

index_buffer: Buffer

Index buffer which instructs the GPU in which order to draw vertices from a vertex buffer, with each subsequent 3 indices forming a triangle.

images: Vec<Texture>

Textures to be used with when drawing the geometry in the fragment shader.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.