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?