pub enum RenderOperation {
Stencil,
Clip,
UnClip,
Color,
SaveAlphaContext,
ScaleAlphaContext,
RestoreAlphaContext,
}Expand description
Which shader to use for rendering a shape
Variants§
Stencil
Prepare rendering the Shape
Clip
UnClip
Color
Render the Shape as a solid color using alpha blending
SaveAlphaContext
ScaleAlphaContext
Second step of RenderOperation::SaveAlphaContext, needs its own wgpu::RenderPass
RestoreAlphaContext
Trait Implementations§
Source§impl Clone for RenderOperation
impl Clone for RenderOperation
Source§fn clone(&self) -> RenderOperation
fn clone(&self) -> RenderOperation
Returns a duplicate 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 RenderOperation
impl Debug for RenderOperation
Source§impl Ord for RenderOperation
impl Ord for RenderOperation
Source§fn cmp(&self, other: &RenderOperation) -> Ordering
fn cmp(&self, other: &RenderOperation) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RenderOperation
impl PartialEq for RenderOperation
Source§impl PartialOrd for RenderOperation
impl PartialOrd for RenderOperation
impl Copy for RenderOperation
impl Eq for RenderOperation
impl StructuralPartialEq for RenderOperation
Auto Trait Implementations§
impl Freeze for RenderOperation
impl RefUnwindSafe for RenderOperation
impl Send for RenderOperation
impl Sync for RenderOperation
impl Unpin for RenderOperation
impl UnwindSafe for RenderOperation
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.