DriftTexture · function

halfWeights

A whole weight array as half-precision bits, each weight rounded on its own.

Explained in DriftTexture.

function halfWeights(weights: Float32Array): Uint16Array
import { halfWeights } from '@driftengine/texture';

Parameters

ParameterTypeDescription
weightsFloat32Array