Method CopyTexture
CopyTexture(CommandBuffer, RenderTargetIdentifier, RenderTargetIdentifier)
Copies the content of a texture into the other. Both textures must have the same size and format or this method will fail.
Declaration
public static void CopyTexture(CommandBuffer cmd, RenderTargetIdentifier source, RenderTargetIdentifier destination)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | The command buffer to use |
RenderTargetIdentifier | source | The source render target |
RenderTargetIdentifier | destination | The destination render target |
Remarks
If the CopyTexture command isn't supported on the target platform it will revert to a fullscreen blit command instead.