f64GuardOne
이 페이지에서

f64GuardOne()

함수, 내장 함수 분류

The anti-fast-math guard value of the f64 emulation: a 1.0 the GPU compiler cannot see through, emitted per target as a texel fetch from the guard texture that fp64Guard declares.

import { f64GuardOne } from 'typeshade'

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

구문

const f64GuardOne: () => Node<"f32">

반환값

Node<'f32'>

설명

The CPU evaluation returns exactly 1. The f64 emulation pass inserts it on its own; authoring code has no reason to call it.

대상별 지원

대상지원비고
WGSL (WebGPU) 지원

textureLoad(_fp64, vec2<i32>(0, 0), 0).x.

GLSL ES 3.00 (WebGL2) 지원

texelFetch(_fp64, ivec2(0, 0), 0).x.

CPU 오라클 지원

Evaluated in f64 by the oracle.

소스

src/core/ir/node.ts, 2185행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고