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 , webgl2 or webgl |
vendor | N/A | GPU vendor |
renderer | N/A | GPU Driver |
version | N/A | Driver version |
gpu | N/A | apple , intel , nvidia , amd , software or unknown |
gpuType | N/A | discrete , integrated , cpu or unknown |
gpuBackend | N/A | metal , opengl , vulkan , d3d12 , ... or unknown |
gpuArchitecture | N/A | common-3 on 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.