menu

GpuCompositeAlphaMode

import { GpuCompositeAlphaMode } from "destack:gpu/binding";

Surface composite alpha mode.

language/library/src/gpu/binding/present.ds:31:42
1export enum GpuCompositeAlphaMode {2    Auto = 0,3    Opaque = 1,4    Premultiplied = 2,5    Postmultiplied = 3,6    Inherit = 4,7}

Variants

Auto = 0

Choose the backend default alpha mode.

Opaque = 1

Treat the surface as opaque.

Premultiplied = 2

Use premultiplied alpha.

Postmultiplied = 3

Use postmultiplied alpha.

Inherit = 4

Inherit compositor alpha behavior.