-
Notifications
You must be signed in to change notification settings - Fork 45
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
Is wgpuSurfaceGetPreferredFormat
redundant with WGPUSurfaceCapabilities.formats[0]
?
#290
Comments
I'd definitely be in favor of removing it for now! |
After reviewing some code using this, I do think it's a little bit of a magic incantation to use |
May 23 meeting (sorry for delay):
|
If
versus
|
I don't think it is coming back very soon, as it will be some time before the JS API has any arguments to |
Done in #319. |
Since @beaufortfrancois is trying to port some samples, I realized we probably should list the preferred format as
formats[0]
. Otherwise it's not obvious thatformats[0]
might give you the wrong format and you need to callGetPreferredFormat
instead.GetPreferredFormat
is already planned to become extensible (#216) so it can take extra options into account unlikeformats[0]
, but in the near term it won't actually have any extra options, so maybe there's no reason to have it at all yet. We can add the function once it actually has extra options.The text was updated successfully, but these errors were encountered: