Skip to content

InitFromDeviceOptions

InitFromDeviceOptions: object

Options passed into initFromDevice.

device: GPUDevice

optional shaderGenerator: ShaderGenerator

A custom shader code generator, used when resolving TGSL. If not provided, the default WGSL generator will be used.

optional unstable_logOptions: LogGeneratorOptions

optional unstable_names: "random" | "strict"

'random'

packages/typegpu/src/core/root/init.ts:808