pub enum ChannelMode {
Luma,
Chroma,
Yuv,
}Expand description
Which channels of a frame the denoiser works on.
Variants§
Luma
The single brightness channel, with distances scaled by 3.0.
Chroma
The two colour channels, U and V, with distances scaled by 1.5.
Yuv
All three channels together, with distances left unscaled.
Implementations§
Source§impl ChannelMode
impl ChannelMode
Sourcepub fn storage_count(self) -> u32
pub fn storage_count(self) -> u32
How many channels each pixel occupies in GPU storage.
This is padded up to the next supported vector width so kernels
can read whole Line<f32> values at once. Backends only support
power-of-two widths, so YUV pads from 3 up to 4.
Trait Implementations§
Source§impl Clone for ChannelMode
impl Clone for ChannelMode
Source§fn clone(&self) -> ChannelMode
fn clone(&self) -> ChannelMode
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 ChannelMode
Source§impl Debug for ChannelMode
impl Debug for ChannelMode
impl Eq for ChannelMode
Source§impl PartialEq for ChannelMode
impl PartialEq for ChannelMode
impl StructuralPartialEq for ChannelMode
Auto Trait Implementations§
impl Freeze for ChannelMode
impl RefUnwindSafe for ChannelMode
impl Send for ChannelMode
impl Sync for ChannelMode
impl Unpin for ChannelMode
impl UnsafeUnpin for ChannelMode
impl UnwindSafe for ChannelMode
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<C> CloneExpand for Cwhere
C: Clone,
impl<C> CloneExpand for Cwhere
C: Clone,
fn __expand_clone_method(&self, _scope: &mut Scope) -> C
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.