Struct webrender::prim_store::picture::FilterGraphNodeKey
source · pub struct FilterGraphNodeKey {
pub kept_by_optimizer: bool,
pub linear: bool,
pub inputs: Vec<FilterGraphPictureReferenceKey>,
pub subregion: [Au; 4],
}
Fields§
§kept_by_optimizer: bool
Indicates this graph node was marked as unnecessary by the DAG optimizer (for example SVGFEOffset can often be folded into downstream nodes)
linear: bool
True if color_interpolation_filter == LinearRgb; shader will convert sRGB texture pixel colors on load and convert back on store, for correct interpolation
inputs: Vec<FilterGraphPictureReferenceKey>
virtualized picture input binding 1 (i.e. texture source), typically this is used, but certain filters do not use it
subregion: [Au; 4]
rect this node will render into, in filter space, does not account for inflate or device_pixel_scale
Trait Implementations§
source§impl Clone for FilterGraphNodeKey
impl Clone for FilterGraphNodeKey
source§fn clone(&self) -> FilterGraphNodeKey
fn clone(&self) -> FilterGraphNodeKey
Returns a copy 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 moresource§impl Debug for FilterGraphNodeKey
impl Debug for FilterGraphNodeKey
source§impl From<FilterGraphNode> for FilterGraphNodeKey
impl From<FilterGraphNode> for FilterGraphNodeKey
source§fn from(node: FilterGraphNode) -> Self
fn from(node: FilterGraphNode) -> Self
Converts to this type from the input type.
source§impl Hash for FilterGraphNodeKey
impl Hash for FilterGraphNodeKey
source§impl MallocSizeOf for FilterGraphNodeKey
impl MallocSizeOf for FilterGraphNodeKey
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl PartialEq for FilterGraphNodeKey
impl PartialEq for FilterGraphNodeKey
source§impl Serialize for FilterGraphNodeKey
impl Serialize for FilterGraphNodeKey
impl Eq for FilterGraphNodeKey
impl StructuralPartialEq for FilterGraphNodeKey
Auto Trait Implementations§
impl Freeze for FilterGraphNodeKey
impl RefUnwindSafe for FilterGraphNodeKey
impl Send for FilterGraphNodeKey
impl Sync for FilterGraphNodeKey
impl Unpin for FilterGraphNodeKey
impl UnwindSafe for FilterGraphNodeKey
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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