pub struct VertexBuffer {
pub format: VertexBufferFormat,
pub buffer: Vec<u8>,
}
Expand description
Vertex buffer, the buffer is used for quad
or path
rendering based on
the format
. (See GpuDriver::create_geometry
).
Fields§
§format: VertexBufferFormat
The format of the raw data. Either path or quad vertices.
buffer: Vec<u8>
The raw vertex buffer data.
Trait Implementations§
Source§impl TryFrom<ULVertexBuffer> for VertexBuffer
impl TryFrom<ULVertexBuffer> for VertexBuffer
Auto Trait Implementations§
impl Freeze for VertexBuffer
impl RefUnwindSafe for VertexBuffer
impl Send for VertexBuffer
impl Sync for VertexBuffer
impl Unpin for VertexBuffer
impl UnwindSafe for VertexBuffer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more