Is wgpuSurfaceGetPreferredFormat
redundant with WGPUSurfaceCapabilities.formats[0]
?
#290
Labels
has resolution
Issue is resolved, just needs to be done
needs docs
Non-trivial API contract needs to be documented. Orthogonal to open vs closed; remove when doc'd.
presentation
Presenting images to surfaces like windows and canvases
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: