ts-type-forge
    Preparing search index...

    Type Alias Float32

    Float32: TSTypeForgeInternals_ExtendNumberBrand<
        TSTypeForgeInternals_BrandedNumberBaseType,
        "Float32",
    >

    Branded numeric type for 32-bit floating point numbers. Represents values that can be stored in a Float32Array.

    const toFloat32 = (x: number): Float32 => {
    const arr = new Float32Array([x]);
    return arr[0] as Float32;
    };

    const shader = (vertices: Float32[]) => {
    // WebGL shader processing
    };