pub struct ShadingTexture {
pub data: Vec<u8>,
pub width: u32,
pub height: u32,
pub transform: Affine,
pub has_transparency: bool,
}Expand description
A shading that was rasterized into a texture.
Fields§
§data: Vec<u8>The straight (non-premultiplied) RGBA8 pixel data, row-major.
width: u32The width of the texture in pixels.
height: u32The height of the texture in pixels.
transform: AffineThe transform from texture space to the space of the rasterized bounding box.
has_transparency: boolWhether any pixel of the texture is not fully opaque.
Auto Trait Implementations§
impl Freeze for ShadingTexture
impl RefUnwindSafe for ShadingTexture
impl Send for ShadingTexture
impl Sync for ShadingTexture
impl Unpin for ShadingTexture
impl UnsafeUnpin for ShadingTexture
impl UnwindSafe for ShadingTexture
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