Skip to main content

Interface: RenderingCapabilities

The GPU capability profile detected through offscreen WebGL probes.

This is the single source the rendering configuration consults instead of scattered per-feature checks: backend selection reads webgl, texture-format decisions read the TextureFormatSupport flags, and renderer/softwareRasterizer let applications surface or log degraded environments (e.g. SwiftShader after a driver denylist hit).

Only WebGL2 is probed: vtk.js cannot render with WebGL1, so a WebGL1-only browser reports webgl: false and uses CPU rendering.

Extends​

  • TextureFormatSupport

Properties​

float​

float: boolean

Inherited from​

TextureFormatSupport.float

Defined in​

packages/core/src/utilities/textureSupport.ts:15


floatLinear​

floatLinear: boolean

Inherited from​

TextureFormatSupport.floatLinear

Defined in​

packages/core/src/utilities/textureSupport.ts:16


halfFloat​

halfFloat: boolean

Inherited from​

TextureFormatSupport.halfFloat

Defined in​

packages/core/src/utilities/textureSupport.ts:17


halfFloatLinear​

halfFloatLinear: boolean

Inherited from​

TextureFormatSupport.halfFloatLinear

Defined in​

packages/core/src/utilities/textureSupport.ts:18


max3DTextureSize​

max3DTextureSize: number

MAX_3D_TEXTURE_SIZE of the probed context, 0 when unknown.

Defined in​

packages/core/src/utilities/renderingCapabilities.ts:140


maxTextureSize​

maxTextureSize: number

MAX_TEXTURE_SIZE of the probed context, 0 when no context exists.

Defined in​

packages/core/src/utilities/renderingCapabilities.ts:138


norm16​

norm16: boolean

Signed 16-bit normalized (R16_SNORM), which most CT data uses.

Inherited from​

TextureFormatSupport.norm16

Defined in​

packages/core/src/utilities/textureSupport.ts:10


norm16Linear​

norm16Linear: boolean

Inherited from​

TextureFormatSupport.norm16Linear

Defined in​

packages/core/src/utilities/textureSupport.ts:11


renderer​

renderer: string

Unmasked renderer string when exposed by the browser, '' otherwise.

Defined in​

packages/core/src/utilities/renderingCapabilities.ts:142


softwareRasterizer​

softwareRasterizer: boolean

True when the renderer string identifies a software rasterizer.

Defined in​

packages/core/src/utilities/renderingCapabilities.ts:144


unorm16​

unorm16: boolean

Unsigned 16-bit normalized (R16_EXT), which most MR data uses.

Inherited from​

TextureFormatSupport.unorm16

Defined in​

packages/core/src/utilities/textureSupport.ts:13


unorm16Linear​

unorm16Linear: boolean

Inherited from​

TextureFormatSupport.unorm16Linear

Defined in​

packages/core/src/utilities/textureSupport.ts:14


webgl​

webgl: boolean

A WebGL2 context could be created.

Defined in​

packages/core/src/utilities/renderingCapabilities.ts:136