f32Lit()
Function in Emit
Spell v as an f32 literal, in the form WGSL and GLSL share: an integer-looking value gets a .0 suffix so a float context never sees an integer literal.
import { f32Lit } from 'typeshade'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
Syntax
function f32Lit(v: number): stringParameters
vnumber
Return value
string
Exceptions
Source
src/core/backends/wgsl.ts, line 146, at commit 26de7be8