InitFromDeviceOptions
InitFromDeviceOptions:
object
Options passed into initFromDevice.
Type declaration
Section titled “Type declaration”device
Section titled “device”device:
GPUDevice
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'