# GpuCompositeAlphaMode

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

Surface composite alpha mode.

```ds title="GpuCompositeAlphaMode"
export enum GpuCompositeAlphaMode {
    Auto = 0,
    Opaque = 1,
    Premultiplied = 2,
    Postmultiplied = 3,
    Inherit = 4,
}
```

[language/library/src/gpu/binding/present.ds:31:42](https://github.com/destack-sh/destack/blob/main/language/library/src/gpu/binding/present.ds#L31-L42)

## 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.
