menu
GpuCompositeAlphaMode
import { GpuCompositeAlphaMode } from "destack:gpu/binding";
Surface composite alpha mode.
1export enum GpuCompositeAlphaMode {2 Auto = 0,3 Opaque = 1,4 Premultiplied = 2,5 Postmultiplied = 3,6 Inherit = 4,7}Variants
Auto = 0Choose the backend default alpha mode.
Opaque = 1Treat the surface as opaque.
Premultiplied = 2Use premultiplied alpha.
Postmultiplied = 3Use postmultiplied alpha.
Inherit = 4Inherit compositor alpha behavior.