InitOptions
InitOptions =
object
Defined in: packages/typegpu/src/core/root/init.ts:793
Options passed into init.
Properties
Section titled “Properties”adapter?
Section titled “adapter?”
optionaladapter:GPURequestAdapterOptions
Defined in: packages/typegpu/src/core/root/init.ts:794
device?
Section titled “device?”
optionaldevice:GPUDeviceDescriptor&object
Defined in: packages/typegpu/src/core/root/init.ts:795
Type Declaration
Section titled “Type Declaration”optionalFeatures?
Section titled “optionalFeatures?”
optionaloptionalFeatures:Iterable<GPUFeatureName>
shaderGenerator?
Section titled “shaderGenerator?”
optionalshaderGenerator:ShaderGenerator
Defined in: packages/typegpu/src/core/root/init.ts:802
A custom shader code generator, used when resolving TypeGPU functions. If not provided, the default WGSL generator will be used.
unstable_logOptions?
Section titled “unstable_logOptions?”
optionalunstable_logOptions:LogGeneratorOptions
Defined in: packages/typegpu/src/core/root/init.ts:803
unstable_names?
Section titled “unstable_names?”
optionalunstable_names:"random"|"strict"
Defined in: packages/typegpu/src/core/root/init.ts:797
Default
Section titled “Default”'random'