Trait ascending_graphics::BufferLayout
source · pub trait BufferLayout {
// Required methods
fn attributes() -> Vec<VertexAttribute>;
fn default_buffer() -> BufferData;
fn stride() -> usize;
fn with_capacity(
vertex_capacity: usize,
index_capacity: usize
) -> BufferData;
}Required Methods§
sourcefn attributes() -> Vec<VertexAttribute>
fn attributes() -> Vec<VertexAttribute>
WGPU’s Shader Attributes
sourcefn default_buffer() -> BufferData
fn default_buffer() -> BufferData
Default Buffer set to a large size.
sourcefn with_capacity(vertex_capacity: usize, index_capacity: usize) -> BufferData
fn with_capacity(vertex_capacity: usize, index_capacity: usize) -> BufferData
Creates a Buffer at a capacity Capacity is a count of objects.
Object Safety§
This trait is not object safe.