Skip to content

InitFromDeviceOptions

InitFromDeviceOptions = object

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

Options passed into initFromDevice.

device: GPUDevice

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


optional unstable_logOptions: LogGeneratorOptions

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


optional unstable_minify: boolean

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

If set to true, rooted resolves will be stripped of all excessive spaces. Rooted resolves include pipelines and all their transitive dependencies, but not, for example, tgpu.resolve([MyStruct]), as there may be multiple roots with different settings in one program.

false

optional unstable_names: "random" | "strict"

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

'strict'

optional unstable_shaderGeneratorClass: WgslGeneratorClass

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

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