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

FieldThis BrowserDescription
typeN/ADevice type webgpu, webgl2 or webgl
vendorN/AGPU vendor
rendererN/AGPU Driver
versionN/ADriver version
gpuN/Aapple, intel, nvidia, amd, software or unknown
gpuTypeN/Adiscrete, integrated, cpu or unknown
gpuBackendN/Ametal, opengl, vulkan, d3d12, ... or unknown
gpuArchitectureN/Acommon-3 on Apple
shadingLanguageN/AShanding language wgsl, glsl
shadingLanguageVersionN/AShading language version GLSL 3.00 = 300, GLSL 1.00 = 100)