docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RenderGraphObjectPool

    Helper class provided in the RenderGraphContext to all Render Passes. It allows you to do temporary allocations of various objects during a Render Pass.

    Inheritance
    object
    RenderGraphObjectPool
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Rendering.RenderGraphModule
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    Syntax
    public sealed class RenderGraphObjectPool

    Methods

    GetTempArray<T>(int)

    Allocate a temporary typed array of a specific size. Unity releases the array at the end of the Render Pass.

    Declaration
    public T[] GetTempArray<T>(int size)
    Parameters
    Type Name Description
    int size

    Number of element in the array.

    Returns
    Type Description
    T[]

    A new array of type T with size number of elements.

    Type Parameters
    Name Description
    T

    Type of the array to be allocated.

    GetTempMaterialPropertyBlock()

    Allocate a temporary MaterialPropertyBlock for the Render Pass.

    Declaration
    public MaterialPropertyBlock GetTempMaterialPropertyBlock()
    Returns
    Type Description
    MaterialPropertyBlock

    A new clean MaterialPropertyBlock.

    Extension Methods

    ReflectionUtils.GetField(object, string)
    ReflectionUtils.GetFields(object)
    ReflectionUtils.Invoke(object, string, params object[])
    ReflectionUtils.SetField(object, string, object)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, T)
    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)