docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UniversalCameraHistory

    URP camera history texture manager.

    Inheritance
    object
    UniversalCameraHistory
    Implements
    ICameraHistoryReadAccess
    ICameraHistoryWriteAccess
    IPerFrameHistoryAccessTracker
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    Implements

    UnityEngine.Rendering.ICameraHistoryReadAccess
    UnityEngine.Rendering.ICameraHistoryWriteAccess
    UnityEngine.Rendering.IPerFrameHistoryAccessTracker
    IDisposable
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)