pub enum WebGpuBatchKind {
Solid,
Textured,
}Expand description
A batch is one contiguous run of triangles that share a pipeline and a bind group, and therefore cost exactly one draw call. The backend groups the display list into batches of these two kinds, so a steady-state frame issues a handful of draw calls no matter how many shapes the chart holds.
Variants§
Solid
Flat-coloured triangles: fills, strokes, area strips, and label backgrounds.
These all live in one vertex buffer and are drawn with the solid pipeline, which needs no texture bindings.
Textured
Textured triangles: glyph quads read the glyph atlas, and image quads read the image itself.
These live in one vertex buffer and are drawn with the textured pipeline, which samples whatever texture is bound to group one.
Trait Implementations§
Source§impl Clone for WebGpuBatchKind
impl Clone for WebGpuBatchKind
impl Copy for WebGpuBatchKind
Source§impl Debug for WebGpuBatchKind
impl Debug for WebGpuBatchKind
Source§impl Default for WebGpuBatchKind
impl Default for WebGpuBatchKind
impl Eq for WebGpuBatchKind
Source§impl Hash for WebGpuBatchKind
impl Hash for WebGpuBatchKind
Source§impl PartialEq for WebGpuBatchKind
impl PartialEq for WebGpuBatchKind
impl StructuralPartialEq for WebGpuBatchKind
Auto Trait Implementations§
impl Freeze for WebGpuBatchKind
impl RefUnwindSafe for WebGpuBatchKind
impl Send for WebGpuBatchKind
impl Sync for WebGpuBatchKind
impl Unpin for WebGpuBatchKind
impl UnsafeUnpin for WebGpuBatchKind
impl UnwindSafe for WebGpuBatchKind
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