Version: 2022.3

RenderTargetBindingConstructor

切换到手册
public RenderTargetBinding (Rendering.RenderTargetIdentifier colorRenderTarget, Rendering.RenderBufferLoadAction colorLoadAction, Rendering.RenderBufferStoreAction colorStoreAction, Rendering.RenderTargetIdentifier depthRenderTarget, Rendering.RenderBufferLoadAction depthLoadAction, Rendering.RenderBufferStoreAction depthStoreAction);
public RenderTargetBinding (RenderTargetIdentifier[] colorRenderTargets, RenderBufferLoadAction[] colorLoadActions, RenderBufferStoreAction[] colorStoreActions, Rendering.RenderTargetIdentifier depthRenderTarget, Rendering.RenderBufferLoadAction depthLoadAction, Rendering.RenderBufferStoreAction depthStoreAction);
public RenderTargetBinding (RenderTargetSetup setup);

参数

color 要用作渲染目标的颜色缓冲区。
depth 要用作渲染目标的深度缓冲区。
colorLoadAction 颜色缓冲区的加载操作。
colorStoreAction 颜色缓冲区的存储操作。
depthLoadAction 深度/模板缓冲区的加载操作。
depthStoreAction 深度/模板缓冲区的存储操作。

描述

构造 RenderTargetBinding。