docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Denoiser

    The Denoiser class exposes a public API for denoising images that are stored in a NativeArray.

    Inheritance
    object
    DenoiserBase
    Denoiser
    Inherited Members
    DenoiserBase.type
    DenoiserBase.filterHint
    DenoiserBase.IsDenoiserTypeSupported(DenoiserType)
    DenoiserBase.DisposeDenoiser()
    DenoiserBase.m_RequestWidth
    DenoiserBase.m_RequestHeight
    DenoiserBase.m_FilterHint
    DenoiserBase.m_Type
    DenoiserBase.m_InternalState
    DenoiserBase.udnCreateDenoiser(StringBuilder, int, int, int, int, int, DenoiserBase.FilterHint)
    DenoiserBase.udnDisposeDenoiser(IntPtr)
    DenoiserBase.udnGetResult(IntPtr, void*)
    DenoiserBase.udnDenoiseBuffer(IntPtr, StringBuilder, void*, GraphicsFormat)
    DenoiserBase.udnSetPath(IntPtr, StringBuilder)
    DenoiserBase.m_DenoiserBackend
    DenoiserBase.m_UseAOV
    DenoiserBase.m_Temporal
    DenoiserBase.m_ActiveBacked
    DenoiserBase.m_ActiveAOV
    DenoiserBase.m_ActiveWidth
    DenoiserBase.m_ActiveHeight
    DenoiserBase.m_TileWidth
    DenoiserBase.m_TileHeight
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Rendering.Denoising
    Assembly: Unity.Rendering.Denoising.Runtime.dll
    Syntax
    public class Denoiser : DenoiserBase

    Methods

    DenoiseRequest(string, NativeArray<Vector4>)

    Create a denoise request using a native array texture as input.

    Declaration
    public DenoiserBase.State DenoiseRequest(string type, NativeArray<Vector4> src)
    Parameters
    Type Name Description
    string type

    The type of data passed in the native array. Supported options are color, albedo, normal, or flow.

    NativeArray<Vector4> src

    The input data used for the denoising.

    Returns
    Type Description
    DenoiserBase.State

    Returns the state of the operation, whether Success or Failure.

    GetResults(NativeArray<Vector4>)

    Retrieve the results of a denoise request.

    Declaration
    public DenoiserBase.State GetResults(NativeArray<Vector4> dst)
    Parameters
    Type Name Description
    NativeArray<Vector4> dst

    The destination texture that receives the denoise results.

    Returns
    Type Description
    DenoiserBase.State

    Returns the state of the operation, whether Success or Failure.

    Init(DenoiserType, int, int, int, int, FilterHint)

    Create a new denoiser.

    Declaration
    public DenoiserBase.State Init(DenoiserType type, int width, int height, int tileX = 0, int tileY = 0, DenoiserBase.FilterHint filterHint = FilterHint.Default)
    Parameters
    Type Name Description
    DenoiserType type

    The type of denoiser backend to create.

    int width

    The width of the image buffer to be denoised.

    int height

    The height of the image buffer to be denoised.

    int tileX

    Determines the width of tiles in pixels. 0 disables tiling. Use this parameter to divide the image buffer into tiles that match the amount of memory available on your GPU.

    int tileY

    Determines the height of tiles in pixels. 0 disables tiling. Use this parameter to divide the image buffer into tiles that match the amount of memory available on your GPU.

    DenoiserBase.FilterHint filterHint

    The type of filter to use in the denoising operations (default or lightmap)

    Returns
    Type Description
    DenoiserBase.State

    Returns the state of the operation, whether Success or Failure.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)