pub struct PatchShadingParams {
pub patches: Vec<ShadingPatch>,
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 Coons/tensor-product patch mesh shading (Types 6 & 7).
Fields§
§patches: Vec<ShadingPatch>§ctm: Matrix§bbox: Option<[f64; 4]>§color_space: ShadingColorSpace§overprint: bool§painted_channels: u8§color_lut: Option<Arc<Vec<DeviceColor>>>When present, vertex raw_colors[i][0] holds a normalized [0,1]
function input. The renderer interpolates this per-pixel, then
indexes the LUT for per-pixel non-linear function evaluation.
Trait Implementations§
Source§impl Clone for PatchShadingParams
impl Clone for PatchShadingParams
Source§fn clone(&self) -> PatchShadingParams
fn clone(&self) -> PatchShadingParams
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 PatchShadingParams
impl RefUnwindSafe for PatchShadingParams
impl Send for PatchShadingParams
impl Sync for PatchShadingParams
impl Unpin for PatchShadingParams
impl UnsafeUnpin for PatchShadingParams
impl UnwindSafe for PatchShadingParams
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