DeviceInfo
The device.info field holds a small DeviceInfo object that provides information about the device, such as driver, GPU, shading language etc.
Usage
import {Device} from '@luma.gl/core';
const device: Device = ...;
console.log(device.info);
if (device.info.gpu === 'nvidia') {
   ...
}
Device
| Field | This Browser | Description | 
|---|---|---|
| type | N/A | Device type webgpu,webgl2orwebgl | 
| vendor | N/A | GPU vendor | 
| renderer | N/A | GPU Driver | 
| version | N/A | Driver version | 
| gpu | N/A | apple,intel,nvidia,amd,softwareorunknown | 
| gpuType | N/A | discrete,integrated,cpuorunknown | 
| gpuBackend | N/A | metal,opengl,vulkan,d3d12, ... orunknown | 
| gpuArchitecture | N/A | common-3on Apple | 
| shadingLanguage | N/A | Shanding language wgsl,glsl | 
| shadingLanguageVersion | N/A | Shading language version GLSL 3.00 = 300, GLSL 1.00 = 100) | 
- Note that the Chrome browser only exposes limited device information by default. Set the chrome://flags/#enable-webgpu-developer-features flag to see more WebGPU info.