Class RenderTargetPool
Utility for pooling render target resources with reusing and sharing resources during rendering.
Inheritance
System.Object
RenderTargetPool
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public static class RenderTargetPool : Object
Methods
Get(ref GPUTextureDescription)
Gets a temporary render target.
Declaration
[Unmanaged]
public static GPUTexture Get(ref GPUTextureDescription desc)
Parameters
GPUTextureDescription
desc
The texture description. |
Returns
GPUTexture
The allocated render target or reused one. |
Release(GPUTexture)
Releases a temporary render target.
Declaration
[Unmanaged]
public static void Release(GPUTexture rt)
Parameters
GPUTexture
rt
The reference to temporary target to release. |