Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

WebGPU canvaskit fails created a simple device context

25 views
Skip to first unread message

Miguel Camba

unread,
Mar 13, 2025, 1:37:44 PMMar 13
to skia-discuss
This is an easy one to reproduce:
  const adapter = await navigator.gpu.requestAdapter({
    powerPreference: 'high-performance',
  });

  // 2. Get the GPU device
  const device = await adapter.requestDevice({
    requiredFeatures: [],
    requiredLimits: {},
  });

  canvaskit.MakeGPUDeviceContext(device); // Error: this._MakeGrContext is not a function

As far as I can tell, this is a bug on the webgpu implementation. The same method exists on the webgl implementation and works. Missing binding? Should the method be named differently?

Is the Webgpu implementation considered too early stages to be generally useful?

William Candillon

unread,
Mar 27, 2025, 7:34:14 AMMar 27
to skia-discuss
WebGPU is not supported at the moment.
Reply all
Reply to author
Forward
0 new messages