menu

ProgramFormat

import { ProgramFormat } from "destack:compute";

Format for a compute program source.

language/library/src/compute/program.ds:17:32
1export enum ProgramFormat {2    Destack = 1,3    Wgsl = 2,4    SpirV = 3,5    Msl = 4,6    Hlsl = 5,7    Dxil = 6,8    Glsl = 7,9}

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.