CompositeAlphaMode
class CompositeAlphaMode
Defines how the alpha channel of a surface's texture is handled during compositing.
Summary
Constants |
|
|---|---|
const Int |
Auto = 0The implementation selects the optimal composite alpha mode. |
const Int |
Inherit = 4The alpha compositing is handled by the system outside of WebGPU. |
const Int |
Opaque = 1The alpha channel is ignored and treated as |
const Int |
Premultiplied = 2Color channels are assumed to be premultiplied by the alpha channel. |
const Int |
Unpremultiplied = 3Color channels are not premultiplied by the alpha channel. |
Constants
Inherit
const val Inherit = 4: Int
The alpha compositing is handled by the system outside of WebGPU.
Premultiplied
const val Premultiplied = 2: Int
Color channels are assumed to be premultiplied by the alpha channel.
Unpremultiplied
const val Unpremultiplied = 3: Int
Color channels are not premultiplied by the alpha channel.