intLit()
Function in Emit
Spell v as the body of an i32 or u32 literal (no suffix), in the form WGSL and GLSL share.
import { intLit } from 'typeshade'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
Syntax
function intLit(v: number, scalar: 'i32' | 'u32'): stringParameters
vnumberscalar'i32' | 'u32'
Return value
string
Exceptions
Source
src/core/backends/wgsl.ts, line 158, at commit 26de7be8