pub enum SubstrateSpec {
Mean,
Average {
block: u32,
},
Blur {
radius_px: f32,
},
}Expand description
A low-frequency copy of a shader’s source the renderer packs beside it and hands the shader through a reserved substrate region slot.
Variants§
Mean
The componentwise source mean over the layer’s bounds, stored in one texel. Filter padding is excluded; bounds are clipped to the capture and rounded outward to texels. The renderer averages rows and then columns in its render-target format. A capture outside the layer uses its complete source.
Average
The source averaged in blocks of block x block texels, one
substrate texel per block.
Blur
The source blurred by a Gaussian of radius_px device pixels, kept
at the blur’s scratch resolution.
Trait Implementations§
Source§impl Clone for SubstrateSpec
impl Clone for SubstrateSpec
Source§fn clone(&self) -> SubstrateSpec
fn clone(&self) -> SubstrateSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SubstrateSpec
Source§impl Debug for SubstrateSpec
impl Debug for SubstrateSpec
Source§impl PartialEq for SubstrateSpec
impl PartialEq for SubstrateSpec
impl StructuralPartialEq for SubstrateSpec
Auto Trait Implementations§
impl Freeze for SubstrateSpec
impl RefUnwindSafe for SubstrateSpec
impl Send for SubstrateSpec
impl Sync for SubstrateSpec
impl Unpin for SubstrateSpec
impl UnsafeUnpin for SubstrateSpec
impl UnwindSafe for SubstrateSpec
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