Class UniversalCameraHistory
URP camera history texture manager.
Implements
Inherited Members
Namespace: UnityEngine.Rendering.Universal
Assembly: Unity.RenderPipelines.Universal.Runtime.dll
Syntax
public class UniversalCameraHistory : ICameraHistoryReadAccess, ICameraHistoryWriteAccess, IPerFrameHistoryAccessTracker, IDisposable
Methods
Dispose()
Release all camera history textures on the GPU.
Declaration
public void Dispose()
GetHistoryForRead<Type>()
Obtain read access to a history item. Valid only if the item was requested and written this or the previous frame.
Declaration
public Type GetHistoryForRead<Type>() where Type : ContextItem
Returns
Type | Description |
---|---|
Type | Instance of the history item if valid. Null otherwise. |
Type Parameters
Name | Description |
---|---|
Type | Type of the history item. |
GetHistoryForWrite<Type>()
Obtain write access to a history item. Valid only if the item was requested this or the previous frame. Write access implies that the contents of the history item must be written.
Declaration
public Type GetHistoryForWrite<Type>() where Type : ContextItem, new()
Returns
Type | Description |
---|---|
Type | Instance of the history item if valid. Null otherwise. |
Type Parameters
Name | Description |
---|---|
Type | Type of the history item. |
IsAccessRequested<Type>()
Check if a type was requested this frame.
Declaration
public bool IsAccessRequested<Type>() where Type : ContextItem
Returns
Type | Description |
---|---|
bool | True if an active request exists. False otherwise. |
Type Parameters
Name | Description |
---|---|
Type | Type of the history item. |
IsWritten<Type>()
Check if a type was written this frame.
Declaration
public bool IsWritten<Type>() where Type : ContextItem
Returns
Type | Description |
---|---|
bool | True if write access was obtained this frame. False otherwise. |
Type Parameters
Name | Description |
---|---|
Type | Type of the history item. |
RequestAccess<Type>()
Request access to a history item.
Declaration
public void RequestAccess<Type>() where Type : ContextItem
Type Parameters
Name | Description |
---|---|
Type | Type of the history item. |
Events
OnGatherHistoryRequests
Register external type request callbacks to this event.
Declaration
public event ICameraHistoryReadAccess.HistoryRequestDelegate OnGatherHistoryRequests
Event Type
Type | Description |
---|---|
ICameraHistoryReadAccess.HistoryRequestDelegate |