d = gpuDevice()
| Parameter | Description |
|---|---|
| d | a struct describing the selected GPU device. |
d = gpuDevice() returns a struct describing the selected GPU device, with the following fields:
Index: the device index.
Name: the adapter name.
Vendor: the hardware vendor.
Architecture: the device architecture.
Backend: the graphics backend in use (Vulkan, Metal or D3D12).
MaxBufferSize: the maximum size in bytes of a single device buffer.
An error is raised when no compatible GPU device is available.
if canUseGPU()
d = gpuDevice()
end
| Version | Description |
|---|---|
| 2.0.0 | initial version |