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. |