f32Lit
이 페이지에서

f32Lit()

함수, 출력 분류

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'

시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.

구문

function f32Lit(v: number): string

매개변수

v number

반환값

string

예외

SD0017

SD0017 if v is not finite. Neither WGSL nor GLSL has a NaN or Infinity literal, so String(v) would place an unparseable token in the module.

소스

src/core/backends/wgsl.ts, 146행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고