bitcastU32
이 페이지에서

bitcastU32()

함수, 내장 함수 분류

Reinterpret the bit pattern of an f32 as a u32.

import { bitcastU32 } from 'typeshade'

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

구문

const bitcastU32: (v: ReadonlyNode<"f32">) => Node<"u32">

매개변수

v ReadonlyNode<'f32'>

반환값

Node<'u32'>

설명

Emitted as bitcast<u32>(x) on WGSL and floatBitsToUint(x) on GLSL.

대상별 지원

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

bitcast<u32>(v).

GLSL ES 3.00 (WebGL2) 지원

floatBitsToUint(v).

CPU 오라클 지원

Evaluated in f64 by the oracle.

소스

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

이 페이지 편집 문제 보고