Skip to content

InitOptions

InitOptions = object

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

Options passed into init.

optional adapter: GPURequestAdapterOptions

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


optional device: GPUDeviceDescriptor & object

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

optional optionalFeatures: Iterable<GPUFeatureName>


optional unstable_logOptions: LogGeneratorOptions

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


optional unstable_minify: boolean

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

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:611

'strict'

optional unstable_shaderGeneratorClass: WgslGeneratorClass

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

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

© Software Mansion 2026. All trademarks and copyrights belong to their respective owners. Read about our Privacy Policy.