Interface GPUCanvasConfiguration
alphaMode?: GPUCanvasAlphaMode;
colorSpace?: PredefinedColorSpace;
device: GPUDevice;
format: GPUTextureFormat;
toneMapping?: GPUCanvasToneMapping;
usage?: number;
viewFormats?: Iterable<GPUTextureFormat, any, any>;
}
Index
Properties
Properties
Optional
alphaMode
Optional
colorSpace
The color space that values written into textures returned by GPUCanvasContext#getCurrentTexture should be displayed with.
device
The GPUDevice that textures returned by GPUCanvasContext#getCurrentTexture will be compatible with.
format
The format that textures returned by GPUCanvasContext#getCurrentTexture will have. Must be one of the Supported context formats.
Optional
toneMapping
The tone mapping determines how the content of textures returned by GPUCanvasContext#getCurrentTexture are to be displayed.
Optional
usage
The usage that textures returned by GPUCanvasContext#getCurrentTexture will have. GPUTextureUsage#RENDER_ATTACHMENT is the default, but is not automatically included if the usage is explicitly set. Be sure to include GPUTextureUsage#RENDER_ATTACHMENT when setting a custom usage if you wish to use textures returned by GPUCanvasContext#getCurrentTexture as color targets for a render pass.
Optional
viewFormats
The formats that views created from textures returned by GPUCanvasContext#getCurrentTexture may use.
Determines 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.