You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run it with deno run --unstable-ffi --unstable-webgpu -A alphamode-test.ts. This would cause:
error: Uncaught (in promise) TypeError: [object Object]: The provided value 'preMultiplied' is not a valid enum value of type GPUCanvasAlphaMode.
context.configure({
^
at ext:deno_webidl/00_webidl.js:817:13
at Array.GPUCanvasConfiguration (ext:deno_webidl/00_webidl.js:788:32)
at GPUCanvasContext.configure (ext:deno_webgpu/02_surface.js:53:39)
at file://xxx/alphamode-test.ts:18:9
But if we replace alphaMode: "premultiplied" with alphaMode: "preMultiplied", there would be another error:
error: Uncaught (in promise) TypeError: [object Object]: The provided value 'preMultiplied' is not a valid enum value of type GPUCanvasAlphaMode.
context.configure({
^
at ext:deno_webidl/00_webidl.js:817:13
at Array.GPUCanvasConfiguration (ext:deno_webidl/00_webidl.js:788:32)
at GPUCanvasContext.configure (ext:deno_webgpu/02_surface.js:53:39)
at file://xxx/alphamode-test.ts:18:9
The text was updated successfully, but these errors were encountered:
Version: Deno 1.42.4
Example code
Run it with
deno run --unstable-ffi --unstable-webgpu -A alphamode-test.ts
. This would cause:But if we replace
alphaMode: "premultiplied"
withalphaMode: "preMultiplied"
, there would be another error:The text was updated successfully, but these errors were encountered: