Skip to content

InitFromDeviceOptions

InitFromDeviceOptions = object

Defined in: packages/typegpu/src/core/root/init.ts:829

Options passed into initFromDevice.

device: GPUDevice

Defined in: packages/typegpu/src/core/root/init.ts:830


optional shaderGenerator: ShaderGenerator

Defined in: packages/typegpu/src/core/root/init.ts:837

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


optional unstable_logOptions: LogGeneratorOptions

Defined in: packages/typegpu/src/core/root/init.ts:838


optional unstable_names: "random" | "strict"

Defined in: packages/typegpu/src/core/root/init.ts:832

'random'