pub enum WebGl2BatchKind {
Atlas,
Image,
}Expand description
Which texture a batch samples.
The chart draws in batches: a batch is a run of consecutive triangles that share a texture and a clip rectangle, and therefore cost exactly one draw call. Splitting the frame by texture is the only split the backend needs, because the glyph atlas and the images cannot be sampled from one binding.
Variants§
Trait Implementations§
Source§impl Clone for WebGl2BatchKind
impl Clone for WebGl2BatchKind
impl Copy for WebGl2BatchKind
Source§impl Debug for WebGl2BatchKind
impl Debug for WebGl2BatchKind
Source§impl Default for WebGl2BatchKind
impl Default for WebGl2BatchKind
impl Eq for WebGl2BatchKind
Source§impl Hash for WebGl2BatchKind
impl Hash for WebGl2BatchKind
Source§impl PartialEq for WebGl2BatchKind
impl PartialEq for WebGl2BatchKind
impl StructuralPartialEq for WebGl2BatchKind
Auto Trait Implementations§
impl Freeze for WebGl2BatchKind
impl RefUnwindSafe for WebGl2BatchKind
impl Send for WebGl2BatchKind
impl Sync for WebGl2BatchKind
impl Unpin for WebGl2BatchKind
impl UnsafeUnpin for WebGl2BatchKind
impl UnwindSafe for WebGl2BatchKind
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