pub struct MeshShadingParams {
pub triangles: Vec<ShadingTriangle>,
pub ctm: Matrix,
pub bbox: Option<[f64; 4]>,
pub color_space: ShadingColorSpace,
pub overprint: bool,
pub painted_channels: u8,
pub color_lut: Option<Arc<Vec<DeviceColor>>>,
}Expand description
Parameters for Gouraud-shaded triangle mesh shading (Types 4 & 5).
Fields§
§triangles: Vec<ShadingTriangle>§ctm: Matrix§bbox: Option<[f64; 4]>§color_space: ShadingColorSpace§overprint: bool§painted_channels: u8§color_lut: Option<Arc<Vec<DeviceColor>>>Pre-sampled color LUT for function-based mesh shadings.
When present, vertex raw_components[0] holds a normalized [0,1]
function input. The renderer interpolates this per-pixel, then
indexes the LUT instead of Gouraud-interpolating DeviceColor.
Trait Implementations§
Source§impl Clone for MeshShadingParams
impl Clone for MeshShadingParams
Source§fn clone(&self) -> MeshShadingParams
fn clone(&self) -> MeshShadingParams
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 Freeze for MeshShadingParams
impl RefUnwindSafe for MeshShadingParams
impl Send for MeshShadingParams
impl Sync for MeshShadingParams
impl Unpin for MeshShadingParams
impl UnsafeUnpin for MeshShadingParams
impl UnwindSafe for MeshShadingParams
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