bitcast
이 페이지에서

bitcast

함수

Reads the same 32 bits as another type: bitcast<u32>(x) on an f32 and bitcast<f32>(x) on a u32.

이름마다 붙은 시그니처와 설명은 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.

구문

declare function bitcast<T extends u32 | f32>(e: BitcastArg<T>): T

매개변수

  • e BitcastArg<T>

반환값

T

설명

It reinterprets, it does not convert; u32(x) is the conversion. floatBitsToUint / uintBitsToFloat on GLSL ES 3.00.

예제

함께 보기

이 페이지 편집 문제 보고