InitOptions
InitOptions =
object
Defined in: packages/typegpu/src/core/root/init.ts:603
Options passed into init.
Properties
Section titled “Properties”adapter?
Section titled “adapter?”
optionaladapter:GPURequestAdapterOptions
Defined in: packages/typegpu/src/core/root/init.ts:604
device?
Section titled “device?”
optionaldevice:GPUDeviceDescriptor&object
Defined in: packages/typegpu/src/core/root/init.ts:605
Type Declaration
Section titled “Type Declaration”optionalFeatures?
Section titled “optionalFeatures?”
optionaloptionalFeatures:Iterable<GPUFeatureName>
unstable_logOptions?
Section titled “unstable_logOptions?”
optionalunstable_logOptions:LogGeneratorOptions
Defined in: packages/typegpu/src/core/root/init.ts:622
unstable_minify?
Section titled “unstable_minify?”
optionalunstable_minify:boolean
Defined in: packages/typegpu/src/core/root/init.ts:616
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.
Default
Section titled “Default”falseunstable_names?
Section titled “unstable_names?”
optionalunstable_names:"random"|"strict"
Defined in: packages/typegpu/src/core/root/init.ts:607
Default
Section titled “Default”'strict'unstable_shaderGeneratorClass?
Section titled “unstable_shaderGeneratorClass?”
optionalunstable_shaderGeneratorClass:WgslGeneratorClass
Defined in: packages/typegpu/src/core/root/init.ts:621
A custom shader code generator, used when resolving TypeGPU functions. If not provided, the default WGSL generator will be used.