Version: 2021.1
LanguageEnglish
  • C#

RenderTargetBinding Constructor

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public RenderTargetBinding(Rendering.RenderTargetIdentifier colorRenderTarget, Rendering.RenderBufferLoadAction colorLoadAction, Rendering.RenderBufferStoreAction colorStoreAction, Rendering.RenderTargetIdentifier depthRenderTarget, Rendering.RenderBufferLoadAction depthLoadAction, Rendering.RenderBufferStoreAction depthStoreAction);

Declaration

public RenderTargetBinding(RenderTargetIdentifier[] colorRenderTargets, RenderBufferLoadAction[] colorLoadActions, RenderBufferStoreAction[] colorStoreActions, Rendering.RenderTargetIdentifier depthRenderTarget, Rendering.RenderBufferLoadAction depthLoadAction, Rendering.RenderBufferStoreAction depthStoreAction);

Declaration

public RenderTargetBinding(RenderTargetSetup setup);

Parameters

color Color buffers to use as render targets.
depth Depth buffer to use as render target.
colorLoadAction Load actions for color buffers.
colorStoreAction Store actions for color buffers.
depthLoadAction Load action for the depth/stencil buffer.
depthStoreAction Store action for the depth/stencil buffer.

Description

Constructs RenderTargetBinding.