Returns the WGPUTextureFormat value of a GPUTextureFormat name, such as navigator.gpu.getPreferredCanvasFormat().
WGPUTextureFormat
GPUTextureFormat
navigator.gpu.getPreferredCanvasFormat()
Throws a RangeError for an unknown name.
RangeError
Returns the
WGPUTextureFormatvalue of aGPUTextureFormatname, such asnavigator.gpu.getPreferredCanvasFormat().Throws a
RangeErrorfor an unknown name.