docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ConstantBuffer

    Constant Buffer management class.

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

    Methods

    Name Description
    PushGlobal<CBType>(CommandBuffer, in CBType, int)

    Update the GPU data of the constant buffer and bind it globally via a command buffer.

    PushGlobal<CBType>(in CBType, int)

    Update the GPU data of the constant buffer and bind it globally.

    Push<CBType>(CommandBuffer, in CBType, ComputeShader, int)

    Update the GPU data of the constant buffer and bind it to a compute shader via a command buffer.

    Push<CBType>(CommandBuffer, in CBType, Material, int)

    Update the GPU data of the constant buffer and bind it to a material via a command buffer.

    Push<CBType>(in CBType, ComputeShader, int)

    Update the GPU data of the constant buffer and bind it to a compute shader.

    Push<CBType>(in CBType, Material, int)

    Update the GPU data of the constant buffer and bind it to a material.

    ReleaseAll()

    Release all currently allocated singleton constant buffers. This needs to be called before shutting down the application.

    SetGlobal<CBType>(int)

    Bind the constant buffer globally.

    SetGlobal<CBType>(CommandBuffer, int)

    Bind the constant buffer globally via a command buffer.

    Set<CBType>(ComputeShader, int)

    Bind the constant buffer to a compute shader.

    Set<CBType>(Material, int)

    Bind the constant buffer to a material.

    Set<CBType>(CommandBuffer, ComputeShader, int)

    Bind the constant buffer to a compute shader via a command buffer.

    UpdateData<CBType>(CommandBuffer, in CBType)

    Update the GPU data of the constant buffer via a command buffer.

    UpdateData<CBType>(in CBType)

    Update the GPU data of the constant buffer.

    Extension Methods

    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, bool)
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)