[−][src]Struct miniquad::graphics::Bindings
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
Auto Trait Implementations
impl RefUnwindSafe for Bindings
[src]
impl Send for Bindings
[src]
impl Sync for Bindings
[src]
impl Unpin for Bindings
[src]
impl UnwindSafe for Bindings
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,