pub struct Pattern {
pub kind: PatternKind,
pub shader_input: PatternShaderInput,
pub texture_input: PatternTextureInput,
pub base_color: ColorF,
pub is_opaque: bool,
pub blend_mode: BlendMode,
}Fields§
§kind: PatternKind§shader_input: PatternShaderInput§texture_input: PatternTextureInput§base_color: ColorF§is_opaque: bool§blend_mode: BlendModeImplementations§
Source§impl Pattern
impl Pattern
pub fn color(color: ColorF) -> Self
pub fn texture(src_task: RenderTaskId, is_opaque: bool) -> Self
pub fn with_blend_mode(self, blend_mode: BlendMode) -> Self
pub fn with_base_color(self, color: ColorF) -> Self
pub fn as_render_task(&self) -> Option<RenderTaskId>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pattern
impl RefUnwindSafe for Pattern
impl Send for Pattern
impl Sync for Pattern
impl Unpin for Pattern
impl UnsafeUnpin for Pattern
impl UnwindSafe for Pattern
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<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