pub enum DenoiseTextureFormat {
Rgba32Float,
Rgba16Float,
}Expand description
Supported texture format for denoising input/output.
Variants§
Rgba32Float
RGBA 32-bit float (4 components). Alpha is preserved.
Rgba16Float
RGBA 16-bit float (4 components). Alpha is preserved.
Implementations§
Source§impl DenoiseTextureFormat
impl DenoiseTextureFormat
Sourcepub fn from_wgpu(format: TextureFormat) -> Option<Self>
pub fn from_wgpu(format: TextureFormat) -> Option<Self>
Converts from a wgpu texture format if it is supported for denoising.
Trait Implementations§
Source§impl Clone for DenoiseTextureFormat
impl Clone for DenoiseTextureFormat
Source§fn clone(&self) -> DenoiseTextureFormat
fn clone(&self) -> DenoiseTextureFormat
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 DenoiseTextureFormat
impl Debug for DenoiseTextureFormat
Source§impl PartialEq for DenoiseTextureFormat
impl PartialEq for DenoiseTextureFormat
Source§impl TryFrom<TextureFormat> for DenoiseTextureFormat
impl TryFrom<TextureFormat> for DenoiseTextureFormat
impl Copy for DenoiseTextureFormat
impl Eq for DenoiseTextureFormat
impl StructuralPartialEq for DenoiseTextureFormat
Auto Trait Implementations§
impl Freeze for DenoiseTextureFormat
impl RefUnwindSafe for DenoiseTextureFormat
impl Send for DenoiseTextureFormat
impl Sync for DenoiseTextureFormat
impl Unpin for DenoiseTextureFormat
impl UnwindSafe for DenoiseTextureFormat
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.