magic-pixels
    Preparing search index...

    Type Alias GltfMeshoptCompression

    The EXT_meshopt_compression extension of a bufferView

    type GltfMeshoptCompression = {
        buffer: number;
        byteLength: number;
        byteOffset?: number;
        byteStride: number;
        count: number;
        filter?: "NONE" | "OCTAHEDRAL" | "QUATERNION" | "EXPONENTIAL";
        mode: "ATTRIBUTES" | "TRIANGLES" | "INDICES";
    }
    Index
    buffer: number

    buffer the compressed bytes live in (not the bufferView's own buffer)

    byteLength: number

    length of the compressed bytes (not the decoded byteLength above)

    byteOffset?: number
    byteStride: number

    stride of one decoded element; together with count gives the decoded size

    count: number
    filter?: "NONE" | "OCTAHEDRAL" | "QUATERNION" | "EXPONENTIAL"
    mode: "ATTRIBUTES" | "TRIANGLES" | "INDICES"