docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method DivRoundUp

    DivRoundUp(int, int)

    Used to compute the number of thread group needed for the process.

    Declaration
    public static int DivRoundUp(int threadCount, int threadCountPerGroup)
    Parameters
    Type Name Description
    int threadCount

    Number of thread required for the process.

    int threadCountPerGroup

    Number of thread group defined in the shader.

    Returns
    Type Description
    int
    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)