docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method DispatchCompute

    DispatchCompute(CommandBuffer, ComputeShaderInstance, int, int, int)

    Dispatch work on the compute shader program.

    Declaration
    public static void DispatchCompute(this CommandBuffer cmd, ComputeShaderInstance shader, int threadGroupsX, int threadGroupsY, int threadGroupsZ)
    Parameters
    Type Name Description
    CommandBuffer cmd

    Command buffer to dispatch the work to.

    ComputeShaderInstance shader

    Shader instance.

    int threadGroupsX

    Number of work groups in the X dimension.

    int threadGroupsY

    Number of work groups in the Y dimension.

    int threadGroupsZ

    Number of work groups in the Z dimension.

    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)