Interface IPerFrameHistoryAccessTracker
User API to request access for an instance of the user history type. Tracks the history types that were requested by the render pipeline features on this frame. Requested history types are then made available for the future frames. Request is active for one frame only and a new request should be made every frame. Types that were not requested are eventually reset and GPU resources released.
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public interface IPerFrameHistoryAccessTracker
Methods
RequestAccess<Type>()
Mark a certain history texture type (class) as a requirement for next frame. Note: Requesting a history doesn't mean it will be actually available. E.g. The first frame doesn't have any history data available at all.
Declaration
void RequestAccess<Type>() where Type : ContextItem
Type Parameters
Name | Description |
---|---|
Type | Type of the history instance. |