pub enum PlannedBatch {
Primitives {
pipeline: PipelineKind,
clip_bind: ClipBindKind,
texture: TextureBindKind,
vertex_range: Range<u32>,
},
IsolatedComposite(PlannedIsolatedComposite),
}Expand description
One draw call in the main or isolated plan.
§Examples
use ailloli_ui_render_wgpu::{ClipBindKind, PipelineKind, PlannedBatch, TextureBindKind};
let batch = PlannedBatch::Primitives { pipeline: PipelineKind::Rect,
clip_bind: ClipBindKind::None, texture: TextureBindKind::None,
vertex_range: 0..6 };
assert!(matches!(batch, PlannedBatch::Primitives { vertex_range, .. } if vertex_range == (0..6)));Variants§
Primitives
One primitive-pipeline draw over a contiguous vertex-arena range.
Fields
§
pipeline: PipelineKindVertex format and render pipeline to bind.
§
clip_bind: ClipBindKindClip uniform to bind at group zero.
§
texture: TextureBindKindOptional sampled texture identity at group one.
IsolatedComposite(PlannedIsolatedComposite)
Composite of a completed isolated pass into the main framebuffer.
Trait Implementations§
Source§impl Clone for PlannedBatch
impl Clone for PlannedBatch
Source§fn clone(&self) -> PlannedBatch
fn clone(&self) -> PlannedBatch
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlannedBatch
impl Debug for PlannedBatch
Source§impl PartialEq for PlannedBatch
impl PartialEq for PlannedBatch
impl StructuralPartialEq for PlannedBatch
Auto Trait Implementations§
impl Freeze for PlannedBatch
impl RefUnwindSafe for PlannedBatch
impl Send for PlannedBatch
impl Sync for PlannedBatch
impl Unpin for PlannedBatch
impl UnwindSafe for PlannedBatch
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more