# RenderBufferLoadAction

> This enum describes what should be done on the render target when it is activated (loaded).

## Definition

* **Type:** Enum
* **Namespace:** [UnityEngine.Rendering](/engine/6000.5/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public enum RenderBufferLoadAction
```

## Remarks

When the GPU starts rendering into a render target, this setting specifies the action that should be performed on the existing contents of the surface. Tile-based GPUs may get performance advantage if the load action is Clear or DontCare. The user should avoid using RenderBufferLoadAction.Load whenever possible.

Please note that not all platforms have load/store actions, so this setting might be ignored at runtime. Generally mobile-oriented graphics APIs (OpenGL ES, Metal) take advantage of these settings.

If you use `RenderBufferLoadAction.DontCare`, rendering might fail or produce artefacts because undefined pixels in the [depth texture](/engine/6000.5/manual/cameras/camera-output/sl-camera-depth-texture.md) cause depth testing to fail. You can use [LoadStoreActionDebugModeSettings](/engine/6000.5/script-reference/unityengine/rendering/loadstoreactiondebugmodesettings.md) to highlight undefined pixels.

## Fields

| Value                                                                                                | Description                                                                                                                                                                                                                                                         |
| ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Clear](/engine/6000.5/script-reference/unityengine/rendering/renderbufferloadaction/clear.md)       | Upon activating the render buffer, clear its contents. Currently only works together with the RenderPass API.                                                                                                                                                       |
| [DontCare](/engine/6000.5/script-reference/unityengine/rendering/renderbufferloadaction/dontcare.md) | When this RenderBuffer is activated, the GPU is instructed not to care about the existing contents of that RenderBuffer. On tile-based GPUs this means that the RenderBuffer contents do not need to be loaded into the tile memory, providing a performance boost. |
| [Load](/engine/6000.5/script-reference/unityengine/rendering/renderbufferloadaction/load.md)         | When this RenderBuffer is activated, preserve the existing contents of it. This setting is expensive on tile-based GPUs and should be avoided whenever possible.                                                                                                    |
