InitFromDeviceOptions
InitFromDeviceOptions =
object
Defined in: packages/typegpu/src/core/root/init.ts:628
Options passed into initFromDevice.
Properties
Section titled “Properties”device
Section titled “device”device:
GPUDevice
Defined in: packages/typegpu/src/core/root/init.ts:629
unstable_logOptions?
Section titled “unstable_logOptions?”
optionalunstable_logOptions:LogGeneratorOptions
Defined in: packages/typegpu/src/core/root/init.ts:646
unstable_minify?
Section titled “unstable_minify?”
optionalunstable_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.
Default
Section titled “Default”falseunstable_names?
Section titled “unstable_names?”
optionalunstable_names:"random"|"strict"
Defined in: packages/typegpu/src/core/root/init.ts:631
Default
Section titled “Default”'strict'unstable_shaderGeneratorClass?
Section titled “unstable_shaderGeneratorClass?”
optionalunstable_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.