Skip to content

GPUMultisampleState

Describes sample count, sample mask, and alpha-to-coverage behavior.

Properties

alphaToCoverageEnabled

When true indicates that a fragment’s alpha channel should be used to generate a sample coverage mask.

count

abstract val count: GPUSize32
Number of samples per pixel. This GPURenderPipeline will be compatible only with attachment textures (colorAttachments and depthStencilAttachment) with matching sampleCounts.

mask

abstract val mask: GPUSampleMask
Mask determining which samples are written to. See [GPUMultisampleState.mask in the WebGPU specification](https://www.w3.org/TR/webgpu/#dom-gpumultisamplestate-mask).