f64Parts
이 페이지에서

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>">

매개변수

x ReadonlyNode<'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 fp64Lower into a pair of f32 lanes before the backend runs.

GLSL ES 3.00 (WebGL2) 에뮬레이션

Rewritten by fp64Lower into a pair of f32 lanes before the backend runs.

CPU 오라클 지원

Evaluated in f64 by the oracle.

소스

src/core/ir/node.ts, 2396행, 커밋 26de7be8 기준

이 페이지 편집 문제 보고