pub enum SubstrateSpec {
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§
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