Struct webrender::internal_types::FilterGraphNode
source · pub struct FilterGraphNode {
pub kept_by_optimizer: bool,
pub linear: bool,
pub inflate: i16,
pub inputs: Vec<FilterGraphPictureReference>,
pub subregion: LayoutRect,
}
Fields§
§kept_by_optimizer: bool
Indicates this graph node was marked as necessary by the DAG optimizer
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
inflate: i16
padding for output rect if we need a border to get correct clamping, or to account for larger final subregion than source rect (see bug 1869672)
inputs: Vec<FilterGraphPictureReference>
virtualized picture input bindings, these refer to other filter outputs by number within the graph, usually there is one element
subregion: LayoutRect
clipping rect for filter node output
Trait Implementations§
source§impl Clone for FilterGraphNode
impl Clone for FilterGraphNode
source§fn clone(&self) -> FilterGraphNode
fn clone(&self) -> FilterGraphNode
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 FilterGraphNode
impl Debug for FilterGraphNode
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 From<FilterOpGraphNode> for FilterGraphNode
impl From<FilterOpGraphNode> for FilterGraphNode
source§fn from(node: FilterOpGraphNode) -> Self
fn from(node: FilterOpGraphNode) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FilterGraphNode
impl RefUnwindSafe for FilterGraphNode
impl Send for FilterGraphNode
impl Sync for FilterGraphNode
impl Unpin for FilterGraphNode
impl UnwindSafe for FilterGraphNode
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> 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