Interface ICameraHistoryReadAccess
User API to get history read access for a user history type instance. Read access is valid and available after the history type has been requested and written by a render pass. Otherwise a null is returned. Typically called by the history type consumer render pass in the render pipeline.
User API for external systems to register history read access callbacks.
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public interface ICameraHistoryReadAccess
Methods
GetHistoryForRead<Type>()
Get read access to an instance of certain history type. Available only if the type instance has been requested and written earlier.
Declaration
Type GetHistoryForRead<Type>() where Type : ContextItem
Returns
Type | Description |
---|---|
Type | A class instance of Type. Null if not available on this frame. |
Type Parameters
Name | Description |
---|---|
Type | Type of the history instance. |
Events
OnGatherHistoryRequests
A callback event used to register a callback for requesting history types.
Declaration
event ICameraHistoryReadAccess.HistoryRequestDelegate OnGatherHistoryRequests
Event Type
Type | Description |
---|---|
ICameraHistoryReadAccess.HistoryRequestDelegate |