Documentation

Unity Engine

Download Unity

Unity Engine

Initialize(int, int, FilterHint, OIDNDeviceType)

Initialize the denoiser for the given image size.
Read time 1 minuteLast updated 4 hours ago

Definition

public bool Initialize(int width, int height, FilterHint filterHint = FilterHint.Lightmap, OIDNDeviceType deviceType = OIDNDeviceType.Default)

Parameters

width

Image width in pixels.

height

Image height in pixels.

filterHint

The kind of image being denoised; selects the OIDN filter.

deviceType

The OIDN device to denoise on.

Returns

Type

Description

boolTrue when the device and filter were created; false when the requested device is not available on this machine.