docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetBuiltinShaderConstants

    SetBuiltinShaderConstants(CommandBuffer)

    Bind the shader constants used by the C++ builtin renderer via a command buffer. UpdateBuiltinShaderConstants should be called before to update the constants. This is required to maintain compatibility with legacy code and shaders.

    Declaration
    public static void SetBuiltinShaderConstants(CommandBuffer cmd)
    Parameters
    Type Name Description
    CommandBuffer cmd

    SetBuiltinShaderConstants(RasterCommandBuffer)

    Bind the shader constants used by the C++ builtin renderer via a raster command buffer. UpdateBuiltinShaderConstants should be called before to update the constants. This is required to maintain compatibility with legacy code and shaders.

    Declaration
    public static void SetBuiltinShaderConstants(RasterCommandBuffer cmd)
    Parameters
    Type Name Description
    RasterCommandBuffer cmd
    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)