CompositeAlphaMode


class CompositeAlphaMode


Defines how the alpha channel of a surface's texture is handled during compositing.

Summary

Constants

const Int
Auto = 0

The implementation selects the optimal composite alpha mode.

const Int

The alpha compositing is handled by the system outside of WebGPU.

const Int
Opaque = 1

The alpha channel is ignored and treated as 1.0.

const Int

Color channels are assumed to be premultiplied by the alpha channel.

const Int

Color channels are not premultiplied by the alpha channel.

Public companion functions

String
toString(value: Int)

Constants

Auto

const val Auto = 0: Int

The implementation selects the optimal composite alpha mode.

Inherit

const val Inherit = 4: Int

The alpha compositing is handled by the system outside of WebGPU.

Opaque

const val Opaque = 1: Int

The alpha channel is ignored and treated as 1.0.

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.

Public companion functions

toString

Added in 1.0.0-alpha05
fun toString(value: Int): String