emitBinding()
Function in Emit
Emit one BindingDecl as a WGSL @group(…) @binding(…) var line.
import { emitBinding } from 'typeshade'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
Syntax
const emitBinding: (b: BindingDecl) => stringParameters
Return value
string
Targets
| Target | Support | Notes |
|---|---|---|
| WGSL (WebGPU) | Supported | Writes WGSL for WebGPU. |
| GLSL ES 3.00 (WebGL2) | Does not apply | |
| CPU oracle | Does not apply |
See also
Source
src/core/backends/wgsl.ts, line 516, at commit 26de7be8