toF64()
함수, 내장 함수 분류
Widen f32 to f64, exactly (the result is the pair (x, 0.0)).
import { toF64 } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
const toF64: (x: ReadonlyNode<"f32"> | number) => Node<"f64">매개변수
xReadonlyNode<'f32'> | number
반환값
Node<'f64'>
설명
Widen f32 to f64, exactly (the result is the pair (x, 0.0)). This is the explicit form
of the widening the arithmetic methods apply on their own when an f32 meets an f64.
대상별 지원
| 대상 | 지원 | 비고 |
|---|---|---|
| WGSL (WebGPU) | 에뮬레이션 | Rewritten by |
| GLSL ES 3.00 (WebGL2) | 에뮬레이션 | Rewritten by |
| CPU 오라클 | 지원 | Evaluated in f64 by the oracle. |
관련 가이드
소스
src/core/ir/node.ts, 2380행, 커밋 c66579bf 기준