pub enum RenderCommandConfig<CustomElementData> {
None(),
Rectangle(Rectangle),
Border(Border),
Text(Text),
Image(Image),
ScissorStart(),
ScissorEnd(),
Custom(Custom<CustomElementData>),
GroupBegin {
shader: Option<ShaderConfig>,
visual_rotation: Option<VisualRotationConfig>,
},
GroupEnd,
}Variants§
None()
Rectangle(Rectangle)
Border(Border)
Text(Text)
Image(Image)
ScissorStart()
ScissorEnd()
Custom(Custom<CustomElementData>)
GroupBegin
Begin a group: Renders children to an offscreen buffer. Optionally applies a fragment shader and/or visual rotation.
Fields
§
shader: Option<ShaderConfig>Fragment shader to apply as post-process.
§
visual_rotation: Option<VisualRotationConfig>Visual rotation applied when compositing the render target.
GroupEnd
Trait Implementations§
Source§impl<CustomElementData: Clone> Clone for RenderCommandConfig<CustomElementData>
impl<CustomElementData: Clone> Clone for RenderCommandConfig<CustomElementData>
Source§fn clone(&self) -> RenderCommandConfig<CustomElementData>
fn clone(&self) -> RenderCommandConfig<CustomElementData>
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 moreAuto Trait Implementations§
impl<CustomElementData> Freeze for RenderCommandConfig<CustomElementData>where
CustomElementData: Freeze,
impl<CustomElementData> RefUnwindSafe for RenderCommandConfig<CustomElementData>where
CustomElementData: RefUnwindSafe,
impl<CustomElementData> Send for RenderCommandConfig<CustomElementData>where
CustomElementData: Send,
impl<CustomElementData> Sync for RenderCommandConfig<CustomElementData>where
CustomElementData: Sync,
impl<CustomElementData> Unpin for RenderCommandConfig<CustomElementData>where
CustomElementData: Unpin,
impl<CustomElementData> UnsafeUnpin for RenderCommandConfig<CustomElementData>where
CustomElementData: UnsafeUnpin,
impl<CustomElementData> UnwindSafe for RenderCommandConfig<CustomElementData>where
CustomElementData: UnwindSafe,
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