Initialize(int, int, FilterHint, OIDNDeviceType)
Initialize the denoiser for the given image size.
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Method
- Namespace: UnityEngine.Rendering.Denoising
- Assembly: UnityEngine.OpenImageDenoiseModule
public bool Initialize(int width, int height, FilterHint filterHint = FilterHint.Lightmap, OIDNDeviceType deviceType = OIDNDeviceType.Default)
Parameters
Image width in pixels.
Image height in pixels.
The kind of image being denoised; selects the OIDN filter.
The OIDN device to denoise on.
Returns
Type | Description |
|---|---|
| bool | True when the device and filter were created; false when the requested device is not available on this machine. |