Enum DeviceType
Enumerates the types of devices that can be used for graphics processing, such as CPU, GPU, or hardware accelerators.
public enum DeviceType
Fields
Undefined = -1
The device type is unspecified or unknown.
Cpu = 0
A CPU device that uses system memory for processing.
Gpu = 1
A GPU device that uses dedicated graphics memory for processing.
Accelerator = 2
A hardware accelerator device used in conjunction with the CPU backend (e.g., BLAS or AMX).