The format that textures returned by GPUCanvasContext.getCurrentTexture will have. Must be one of the Supported context formats.
OptionalviewThe formats that views created from textures returned by GPUCanvasContext.getCurrentTexture may use.
OptionalcolorThe color space that values written into textures returned by GPUCanvasContext.getCurrentTexture should be displayed with.
OptionaltoneThe tone mapping determines how the content of textures returned by GPUCanvasContext.getCurrentTexture are to be displayed. Note: If an implementation doesn't support HDR WebGPU canvases, it should also not expose this member, to allow for feature detection. See GPUCanvasContext.getConfiguration.
OptionalalphaDetermines the effect that alpha values will have on the content of textures returned by GPUCanvasContext.getCurrentTexture when read, displayed, or used as an image source.
Options used to configure the renderer canvas context. If not specified,
formatwill be set withGPU.getPreferredCanvasFormat()andalphaModewithpremultiplied.