Skip to main content

Type Alias: PlatformInfo

PlatformInfo = object

Defined in: lib/shader-assembly/platform-info.ts:10

PlatformInfo

Note​

Designed so that it can be easily created from a luma.gl Device instance Without having any actual dependency on @luma.gl/core

Properties​

features​

features: Set<string>

Defined in: lib/shader-assembly/platform-info.ts:22

Feature strings for feature detection


gpu​

gpu: string

Defined in: lib/shader-assembly/platform-info.ts:18

string identifying current GPU


limits?​

optional limits?: Record<string, number | undefined>

Defined in: lib/shader-assembly/platform-info.ts:20

Device limits exposed to shader preprocessing decisions such as platform capability defines.


shaderLanguage​

shaderLanguage: "glsl" | "wgsl"

Defined in: lib/shader-assembly/platform-info.ts:14

Which shader language is supported


shaderLanguageVersion​

shaderLanguageVersion: 100 | 300

Defined in: lib/shader-assembly/platform-info.ts:16

Which shader language version is preferred


type​

type: "webgl" | "webgpu" | "null" | "unknown"

Defined in: lib/shader-assembly/platform-info.ts:12

Current Web GPU API backend