getContext method

GPUCanvasContext? getContext(
  1. String contextId
)

The WebGPU context, or null where this canvas already has a context of another kind — which is a mistake somewhere else and not a browser without WebGPU.

Implementation

external GPUCanvasContext? getContext(String contextId);