# ProgramFormat

`import { ProgramFormat } from "destack:compute";`

Format for a compute program source.

```ds title="ProgramFormat"
export enum ProgramFormat {
    Destack = 1,
    Wgsl = 2,
    SpirV = 3,
    Msl = 4,
    Hlsl = 5,
    Dxil = 6,
    Glsl = 7,
}
```

[language/library/src/compute/program.ds:17:32](https://github.com/destack-sh/destack/blob/main/language/library/src/compute/program.ds#L17-L32)

## Variants

### `Destack = 1`

TS++ compute function lowered by the toolchain.

### `Wgsl = 2`

WebGPU Shading Language source.

### `SpirV = 3`

SPIR-V binary.

### `Msl = 4`

Metal Shading Language source.

### `Hlsl = 5`

HLSL source.

### `Dxil = 6`

DXIL binary.

### `Glsl = 7`

GLSL source.
