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: boolIndicates this graph node was marked as necessary by the DAG optimizer
linear: booltrue if color_interpolation_filter == LinearRgb; shader will convert sRGB texture pixel colors on load and convert back on store, for correct interpolation
inflate: i16padding 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: LayoutRectclipping 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 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 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 UnsafeUnpin 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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