pub struct ShaderPlaceholder {
pub color: Color,
pub shape: Option<PlaceholderShape>,
}Expand description
What a renderer draws in place of a shader’s effect while the shader’s pipelines compile, so no frame waits for them.
Fields§
§color: ColorThe premultiplied colour of the fill.
shape: Option<PlaceholderShape>The rounded rectangle the fill covers; None fills the layer’s own
shape.
Trait Implementations§
Source§impl Clone for ShaderPlaceholder
impl Clone for ShaderPlaceholder
impl Copy for ShaderPlaceholder
Source§impl Debug for ShaderPlaceholder
impl Debug for ShaderPlaceholder
Source§impl PartialEq for ShaderPlaceholder
impl PartialEq for ShaderPlaceholder
impl StructuralPartialEq for ShaderPlaceholder
Auto Trait Implementations§
impl Freeze for ShaderPlaceholder
impl RefUnwindSafe for ShaderPlaceholder
impl Send for ShaderPlaceholder
impl Sync for ShaderPlaceholder
impl Unpin for ShaderPlaceholder
impl UnsafeUnpin for ShaderPlaceholder
impl UnwindSafe for ShaderPlaceholder
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