f64Parts()
함수, 내장 함수 분류
The (hi, lo) pair of an f64 as a plain vec2<f32>, for storing an f64 into a vec2 buffer field or stage output.
import { f64Parts } from 'typeshade'
시그니처, 설명, 예제는 커밋 26de7be8의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
const f64Parts: (x: ReadonlyNode<"f64">) => Node<"vec2<f32>">매개변수
xReadonlyNode<'f64'>
반환값
Node<'vec2<f32>'>
설명
The (hi, lo) pair of an f64 as a plain vec2<f32>, for storing an f64 into a vec2
buffer field or stage output. It costs nothing, since an emitted f64 already is its pair;
f64FromParts(v.x, v.y) restores it.
대상별 지원
| 대상 | 지원 | 비고 |
|---|---|---|
| WGSL (WebGPU) | 에뮬레이션 | Rewritten by |
| GLSL ES 3.00 (WebGL2) | 에뮬레이션 | Rewritten by |
| CPU 오라클 | 지원 | Evaluated in f64 by the oracle. |
소스
src/core/ir/node.ts, 2396행, 커밋 26de7be8 기준