N E W

BitcountNode

Last modified: Nov 10, 2025

This node represents an operation that counts the bits of a piece of shader data.

Constructor

new BitcountNode(method, aNode)
ParameterTypeDefault Value
method"countTrailingZeros" | "countLeadingZeros" | "countOneBits"
aNodeNode

Constructs a new math node.

AccessorTypeModifiers
get typestringstatic
MethodTypeModifiers

Extends

MathNode
N E W

countTrailingZeros

ParameterTypeDefault Value
xNode | number

Returns

Node
N E W

countLeadingZeros

ParameterTypeDefault Value
xNode | number

Returns

Node
N E W

countOneBits

Returns

Node