docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method PushGlobal

    PushGlobal(CommandBuffer, in CBType, int)

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

    Declaration
    public void PushGlobal(CommandBuffer cmd, in CBType data, int shaderId)
    Parameters
    Type Name Description
    CommandBuffer cmd

    Command Buffer used to execute the graphic commands.

    CBType data

    Input data of the constant buffer.

    int shaderId

    Shader porperty id to bind the constant buffer to.

    PushGlobal(in CBType, int)

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

    Declaration
    public void PushGlobal(in CBType data, int shaderId)
    Parameters
    Type Name Description
    CBType data

    Input data of the constant buffer.

    int shaderId

    Shader porperty id to bind the constant buffer to.

    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)