docs.unity.cn
    Show / Hide Table of Contents

    Class FrameResources

    Utility class to store handles of frame resources for communication between passes.

    Inheritance
    Object
    FrameResources
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.Rendering.Universal
    Syntax
    public class FrameResources

    Methods

    GetTexture<T>(T)

    Get the TextureHandle for a specific identifier.

    Declaration
    public TextureHandle GetTexture<T>(T id)
        where T : struct, Enum
    Parameters
    Type Name Description
    T id
    Returns
    Type Description
    TextureHandle
    Type Parameters
    Name Description
    T

    SetTexture<T>(T, TextureHandle)

    Add or replace the TextureHandle for a specific identifier.

    Declaration
    public void SetTexture<T>(T id, TextureHandle handle)
        where T : struct, Enum
    Parameters
    Type Name Description
    T id
    TextureHandle handle
    Type Parameters
    Name Description
    T
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 17 July 2023