InitOptions
InitOptions:
object
Options passed into init.
Type declaration
Section titled “Type declaration”adapter?
Section titled “adapter?”
optionaladapter:GPURequestAdapterOptions
device?
Section titled “device?”
optionaldevice:GPUDeviceDescriptor&object
Type declaration
Section titled “Type declaration”optionalFeatures?
Section titled “optionalFeatures?”
optionaloptionalFeatures:Iterable<GPUFeatureName>
shaderGenerator?
Section titled “shaderGenerator?”
optionalshaderGenerator:ShaderGenerator
A custom shader code generator, used when resolving TGSL. If not provided, the default WGSL generator will be used.
unstable_logOptions?
Section titled “unstable_logOptions?”
optionalunstable_logOptions:LogGeneratorOptions
unstable_names?
Section titled “unstable_names?”
optionalunstable_names:"random"|"strict"
Default
Section titled “Default”'random'