[][src]Struct miniquad::graphics::Bindings

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

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

impl Clone for Bindings[src]

impl Debug for Bindings[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.