Class BufferedRTHandleSystem
Implement a multiple buffering for RenderTextures.
Implements
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public class BufferedRTHandleSystem : IDisposable
Properties
Name | Description |
---|---|
maxHeight | Maximum allocated height of the Buffered RTHandle System |
maxWidth | Maximum allocated width of the Buffered RTHandle System |
rtHandleProperties | Current properties of the Buffered RTHandle System |
Methods
Name | Description |
---|---|
AllocBuffer(int, Func<RTHandleSystem, int, RTHandle>, int) | Allocate RT handles for a buffer. |
CalculateRatioAgainstMaxSize(int, int) | Returns the ratio against the current target's max resolution |
ClearBuffers(CommandBuffer) | Clears all the previously created history buffers |
Dispose() | Dispose implementation |
GetFrameRT(int, int) | Return the frame RT or null. |
GetNumFramesAllocated(int) | Queries the number of RT handle buffers allocated for a buffer ID. |
ReleaseAll() | Deallocate and clear all buffers. |
ReleaseBuffer(int) | Release a buffer |
ResetReferenceSize(int, int) | Reset the reference size of the system and reallocate all textures. |
SwapAndSetReferenceSize(int, int) | Swap buffers Set the reference size for this RT Handle System (SetReferenceSize(int, int, bool)) |