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
Auto Trait Implementations
impl RefUnwindSafe for Bindings
impl Send for Bindings
impl Sync for Bindings
impl Unpin for Bindings
impl UnwindSafe for Bindings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more