wgslBackend
Constant in Emit
The WGSL target: a Backend that spells types, literals, intrinsics and module declarations for device.createShaderModule.
import { wgslBackend } from 'typeshade'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
Syntax
const wgslBackend: BackendDescription
Pass it to any API that takes a backend,
such as hostFeaturesFor or capabilityMatrix. The WGSL emitters in this
module (emitModule, emitFragment, emitFuncs, …) are already
bound to it.
See also
Source
src/core/backends/wgsl.ts, line 304, at commit 26de7be8