pub struct VectorBatchEntry {
pub vertex_buffer: Buffer,
pub index_buffer: Buffer,
pub index_count: u32,
}Expand description
GPU buffers for a single vector layer’s tessellated mesh.
Produced by build_vector_batch and consumed by
WgpuMapRenderer::render_vector_batches.
Vector geometry is not textured (each vertex carries its own RGBA colour), so there is no atlas grouping – one entry per layer.
Fields§
§vertex_buffer: BufferVertex buffer (VectorVertex with position + colour).
index_buffer: BufferIndex buffer (u32 indices).
index_count: u32Total number of indices to draw.
Auto Trait Implementations§
impl Freeze for VectorBatchEntry
impl !RefUnwindSafe for VectorBatchEntry
impl Send for VectorBatchEntry
impl Sync for VectorBatchEntry
impl Unpin for VectorBatchEntry
impl UnsafeUnpin for VectorBatchEntry
impl !UnwindSafe for VectorBatchEntry
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