---
title: Init(int, int)
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/rendering/denoising/commandbufferdenoiser/init
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/rendering/denoising/commandbufferdenoiser/init.md
last_updated: 2026-11-30
generated_at: 2026-11-30T20:59:06.285Z
locale: en-us
---

# Init(int, int)

> Initialize the denoiser for the given image size.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Rendering.Denoising](/engine/7000.0/script-reference/unityengine/rendering/denoising.md)
* **Assembly:** [UnityEngine.OpenImageDenoiseModule](/engine/7000.0/script-reference/modules/unityengine-openimagedenoisemodule.md)

```csharp
public CommandBufferDenoiser.State Init(int width, int height)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The width of the image buffer to be denoised.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The height of the image buffer to be denoised.

### Returns

| Type                                                                                                    | Description                                                                            |
| ------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| [State](/engine/7000.0/script-reference/unityengine/rendering/denoising/commandbufferdenoiser/state.md) | Returns the state of the initialization operation, whether **Success** or **Failure**. |
