---
title: DenoiseBuffer
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/openimagedenoiser/denoisebuffer
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/rendering/denoising/openimagedenoiser/denoisebuffer.md
last_updated: 2026-11-30
generated_at: 2026-11-30T21:05:11.761Z
locale: en-us
---

# DenoiseBuffer

> Denoise an image.

## 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)

## DenoiseBuffer(DenoiseBufferType, float\*, DenoiseChannels)

Denoise an image.

```csharp
public int DenoiseBuffer(DenoiseBufferType type, float* dataIn, DenoiseChannels channels)
```

### Parameters

**** (\[DenoiseBufferType]\(/engine/7000.0/script-reference/unityengine/rendering/denoising/denoisebuffertype)): Which input image the buffer supplies.**** (\[float\*]\(https\://learn.microsoft.com/dotnet/api/system.single)): The image to denoise, four floats per pixel.**** (\[DenoiseChannels]\(/engine/7000.0/script-reference/unityengine/rendering/denoising/denoisechannels)): Which channels of the buffer carry the signal.

### Returns

| Type                                                       | Description                  |
| ---------------------------------------------------------- | ---------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | 0 on success, -1 on failure. |

## DenoiseBuffer(string, float\*, DenoiseChannels)

Denoise a buffer, naming the input by string.

> **Warning:**
>
> **Deprecated.** Use the DenoiseBufferType overload.

```csharp
public int DenoiseBuffer(string type, float* dataIn, DenoiseChannels channels)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): "color".**** (\[float\*]\(https\://learn.microsoft.com/dotnet/api/system.single)): The image to denoise, four floats per pixel.**** (\[DenoiseChannels]\(/engine/7000.0/script-reference/unityengine/rendering/denoising/denoisechannels)): Which channels of the buffer carry the signal.

### Returns

| Type                                                       | Description                  |
| ---------------------------------------------------------- | ---------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | 0 on success, -1 on failure. |
