-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: GPUCanvasContext.configure()
crash with when alphaMode
or usage
is set
#22446
Comments
The |
I'm getting this error also, though it doesn't seem to be related to |
This should now be fixed. |
Did you try using the "preMultiplied" as is, instead of "preMultiplied"?
…On Sat, 8 Jun 2024, 18:34 Luca Casonato, ***@***.***> wrote:
Closed #22446 <#22446> as
completed.
—
Reply to this email directly, view it on GitHub
<#22446 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AN47WY57LGEPAD3SSHHXWBDZGM6DVAVCNFSM6AAAAABDM52NHKVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTGA4DQOJVGUZDQNQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Sorry, wrong again. It does seem to be fixed. The correct value is |
Version: Deno 1.40.5
With the recent annoucement of BYOW, I created an project to run a three.js application with deno_sdl2.
I noticed that
GPUCanvasContext.configure()
is quite different that the one described on MDN documentation.width
andheight
width
andheight
properties are requiredalphaMode
alphaMode
accepts"opaque"
and"premultiplied"
but only"opaque"
works.An error occured when
"premultiplied"
is set:And I got another error if I set
"preMultiplied"
:I checked wgpu-types and
"preMultiplied"
is expected.Maybe a map from
"premultiplied"
to"preMultiplied"
is required?usage
usage
crash when different thanGPUTextureUsage.RENDER_ATTACHMENT
(threejs useGPUTextureUsage.RENDER_ATTACHMENT | GPUTextureUsage.COPY_SRC
):Error: Surface is not configured for presentation
The text was updated successfully, but these errors were encountered: