Interface ICameraHistoryWriteAccess
User API to get history write access for a user history type instance. Write access is valid and available after the history type has been requested. Otherwise a null is returned. Typically called by the history type producer render pass in the render pipeline.
Namespace: UnityEngine .Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public interface ICameraHistoryWriteAccess
Methods
GetHistoryForWrite<Type>()
Get write access to an instance of certain history type. It is expected that the caller will filling the contents of the type textures. Null if not requested beforehand. On first get of a type, the type instance is created.
Declaration
Type GetHistoryForWrite<Type>() where Type : ContextItem, new()
Returns
Type | Description |
---|---|
Type | True if a type has been requested earlier. False otherwise. |
Type Parameters
Name | Description |
---|---|
Type | Type of the history instance. |
IsAccessRequested<Type>()
Check if a type has been requested and should be written this frame.
Declaration
bool IsAccessRequested<Type>() where Type : ContextItem
Returns
Type | Description |
---|---|
bool | True if a type has been requested earlier. False otherwise. |
Type Parameters
Name | Description |
---|---|
Type | Type of the history instance. |
IsWritten<Type>()
Check if a type was already written this frame by some render pass.
Declaration
bool IsWritten<Type>() where Type : ContextItem
Returns
Type | Description |
---|---|
bool | True if a type has been written earlier. False otherwise. |
Type Parameters
Name | Description |
---|---|
Type | Type of the history instance. |