getPreferredCanvasFormat method
The texture format a canvas on this machine can present without a
conversion pass — "bgra8unorm" on most desktops and "rgba8unorm" on
some phones.
Asked rather than assumed because configuring a canvas with the other one is legal, costs a blit per frame, and looks identical.
Implementation
external String getPreferredCanvasFormat();