docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetComputeTextureParam

    SetComputeTextureParam(CommandBuffer, ComputeShaderInstance, int, Texture)

    Adds a command to set a texture parameter on a compute shader.

    Declaration
    public static void SetComputeTextureParam(this CommandBuffer cmd, ComputeShaderInstance shader, int nameID, Texture texture)
    Parameters
    Type Name Description
    CommandBuffer cmd

    The command buffer.

    ComputeShaderInstance shader

    The compute shader to set the parameter for.

    int nameID

    The property name ID.

    Texture texture

    The texture to set.

    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)