docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method IsType

    IsType(BackendType, DeviceType)

    Checks if a backend type matches a device type. For example, IsType(BackendType.GPUCompute, DeviceType.GPU) returns true.

    Declaration
    public static bool IsType(BackendType backendType, DeviceType deviceType)
    Parameters
    Type Name Description
    BackendType backendType

    The backend type to check.

    DeviceType deviceType

    The device type to check.

    Returns
    Type Description
    bool

    Whether the backend type matches the device type.

    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)