Skip to main content

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

FieldWebGPU
max
WebGPU
core
WebGPU
compat
WebGL2Description
typeN/AN/AN/AN/ADevice type webgpu, webgl, null or unknown
featureLevelN/AN/AN/AN/AEffective WebGPU feature level
vendorN/AN/AN/AN/AGPU vendor
rendererN/AN/AN/AN/AGPU Driver
versionN/AN/AN/AN/ADriver version
gpuN/AN/AN/AN/Aapple, intel, nvidia, amd, software or unknown
gpuTypeN/AN/AN/AN/Adiscrete, integrated, cpu or unknown
gpuBackendN/AN/AN/AN/Ametal, opengl, vulkan, d3d12, ... or unknown
gpuArchitectureN/AN/AN/AN/Acommon-3 on Apple
shadingLanguageN/AN/AN/AN/AShading language wgsl, glsl
shadingLanguageVersionN/AN/AN/AN/AShading language version GLSL 3.00 = 300, WGSL 1.00 = 100)