The TransferRenderTarget
method is used to transfer a render target from one command list to another. This is useful when you need to pass a render target between different rendering stages or command lists within the rendering pipeline.
The TransferRenderTarget
method is used to transfer a render target from one command list to another. This is useful when you need to pass a render target between different rendering stages or command lists within the rendering pipeline.
To use the TransferRenderTarget
method, you need to have a source RenderTargetHandle
and a target CommandList
. The method will return a new RenderTargetHandle
that represents the transferred render target in the context of the target command list.
// Assume 'sourceCommandList' and 'targetCommandList' are instances of CommandList // and 'renderTargetHandle' is a valid RenderTargetHandle. RenderTargetHandle newHandle = sourceCommandList.TransferRenderTarget(renderTargetHandle, targetCommandList); // 'newHandle' can now be used with 'targetCommandList' for further rendering operations.