BitcastNode

Last modified: Mar 5, 2026

This node represents an operation that reinterprets the bit representation of a value in one type as a value in another type.

Constructor

new BitcastNode(valueNode, conversionType, inputType?)
ParameterTypeDefault Value
valueNodeNode
conversionTypestring
inputType?null | stringnull

Constructs a new bitcast node.

AccessorType

Properties

PropertyTypeDefault Value
valueNodeNode
conversionTypestring
inputTypestring
isBitcastNodeboolean
MethodType

Extends

TempNode

bitcast

Reinterpret the bit representation of a value in one type as a value in another type.

ParameterTypeDefault Value
xNode | number
ystring

Returns

Node

floatBitsToInt

Bitcasts a float or a vector of floats to a corresponding integer type with the same element size.

ParameterTypeDefault Value
valueNode<float>

Returns

BitcastNode

floatBitsToUint

Bitcasts a float or a vector of floats to a corresponding unsigned integer type with the same element size.

ParameterTypeDefault Value
valueNode<float>

Returns

BitcastNode

intBitsToFloat

Bitcasts an integer or a vector of integers to a corresponding float type with the same element size.

ParameterTypeDefault Value
valueNode<int>

Returns

BitcastNode

uintBitsToFloat

Bitcast an unsigned integer or a vector of unsigned integers to a corresponding float type with the same element size.

ParameterTypeDefault Value
valueNode<uint>

Returns

BitcastNode