Method SetRenderTargetWithLoadStoreAction
SetRenderTargetWithLoadStoreAction(CommandBuffer, RenderTargetIdentifier, RenderBufferLoadAction, RenderBufferStoreAction)
Sets the current render target using specified RenderBufferLoadAction.
Declaration
public static void SetRenderTargetWithLoadStoreAction(this CommandBuffer cmd, RenderTargetIdentifier rt, RenderBufferLoadAction loadAction, RenderBufferStoreAction storeAction)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | The command buffer to set the render target on |
RenderTargetIdentifier | rt | The render target to set |
RenderBufferLoadAction | loadAction | The load action |
RenderBufferStoreAction | storeAction | The store action |
Remarks
RenderBufferLoadAction are only used on Unity 2018.2 or newer.
SetRenderTargetWithLoadStoreAction(CommandBuffer, RenderTargetIdentifier, RenderBufferLoadAction, RenderBufferStoreAction, RenderBufferLoadAction, RenderBufferStoreAction)
Sets the current render target using specified RenderBufferLoadAction.
Declaration
public static void SetRenderTargetWithLoadStoreAction(this CommandBuffer cmd, RenderTargetIdentifier rt, RenderBufferLoadAction loadAction, RenderBufferStoreAction storeAction, RenderBufferLoadAction depthLoadAction, RenderBufferStoreAction depthStoreAction)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | The command buffer to set the render target on |
RenderTargetIdentifier | rt | The render target to set |
RenderBufferLoadAction | loadAction | The load action |
RenderBufferStoreAction | storeAction | The store action |
RenderBufferLoadAction | depthLoadAction | The load action for the depth/stencil part of rt |
RenderBufferStoreAction | depthStoreAction | The store action for the depth/stencil part of rt |
Remarks
RenderBufferLoadAction are only used on Unity 2018.2 or newer.
SetRenderTargetWithLoadStoreAction(CommandBuffer, RenderTargetIdentifier, RenderBufferLoadAction, RenderBufferStoreAction, RenderTargetIdentifier, RenderBufferLoadAction, RenderBufferStoreAction)
Sets the current render target and its depth using specified RenderBufferLoadAction.
Declaration
public static void SetRenderTargetWithLoadStoreAction(this CommandBuffer cmd, RenderTargetIdentifier color, RenderBufferLoadAction colorLoadAction, RenderBufferStoreAction colorStoreAction, RenderTargetIdentifier depth, RenderBufferLoadAction depthLoadAction, RenderBufferStoreAction depthStoreAction)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | The command buffer to set the render target on |
RenderTargetIdentifier | color | The render target to set as color |
RenderBufferLoadAction | colorLoadAction | The load action for the color render target |
RenderBufferStoreAction | colorStoreAction | The store action for the color render target |
RenderTargetIdentifier | depth | The render target to set as depth |
RenderBufferLoadAction | depthLoadAction | The load action for the depth render target |
RenderBufferStoreAction | depthStoreAction | The store action for the depth render target |