Struct ul_next::gpu_driver::VertexBuffer
source · 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: VertexBufferFormatThe 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