Skip to main content

Type Alias: ShaderTranspileProps

ShaderTranspileProps = object

Defined in: lib/shader-transpiler/shader-transpiler.ts:14

One translation unit, including source-language module dependencies.

Properties​

entryPoints​

entryPoints: ShaderTranspilerEntryPoints

Defined in: lib/shader-transpiler/shader-transpiler.ts:19


platformInfo​

platformInfo: PlatformInfo

Defined in: lib/shader-transpiler/shader-transpiler.ts:20


source​

source: string

Defined in: lib/shader-transpiler/shader-transpiler.ts:15


stage?​

optional stage?: "vertex" | "fragment" | "compute"

Defined in: lib/shader-transpiler/shader-transpiler.ts:18

GLSL compiles one stage at a time; WGSL may compile a unified render program.


target​

target: "glsl" | "wgsl"

Defined in: lib/shader-transpiler/shader-transpiler.ts:16