pub struct LayerCapture {
pub blur_quality: LayerBlurQuality,
pub blur_radius: ScaledPixels,
pub blend_mode: LayerBlendMode,
pub bounds: Bounds<ScaledPixels>,
pub clip: Option<Bounds<ScaledPixels>>,
pub opacity: f32,
pub saturation: f32,
pub brightness: f32,
pub contrast: f32,
pub invert: f32,
pub program: Arc<SceneShaderProgram>,
}Expand description
Immutable capture description shared by its paired scene boundaries.
Fields§
§blur_quality: LayerBlurQualityWorking resolution policy for subtree blur.
blur_radius: ScaledPixelsGaussian support radius in device pixels, in [0,64].
blend_mode: LayerBlendModeDestination blend for the completed group.
bounds: Bounds<ScaledPixels>Source sampling rectangle, including any halo; bounded by the viewport/parent.
clip: Option<Bounds<ScaledPixels>>Visible output clip, applied after filtering. None uses the source bounds.
opacity: f32Opacity of the completed group, including inherited opacity exactly once.
saturation: f32Encoded-sRGB saturation in [0,2], with 0 grayscale and 1 unchanged.
brightness: f32Encoded-sRGB brightness multiplier in [0,2].
contrast: f32Encoded-sRGB contrast in [0,2], centered on straight RGB 0.5.
invert: f32Inversion strength in [0,1], with 0 unchanged and 1 complemented RGB.
program: Arc<SceneShaderProgram>Shared encoded-sRGB capture/composition shader.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LayerCapture
impl RefUnwindSafe for LayerCapture
impl Send for LayerCapture
impl Sync for LayerCapture
impl Unpin for LayerCapture
impl UnsafeUnpin for LayerCapture
impl UnwindSafe for LayerCapture
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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