@pmndrs/bvh
    Preparing search index...

    Function readSerializedHeader

    • Reads the 64-byte header of a tree (serializeLayout) or a scene (serializeTraceScene) without loading it: what it is, the versions it was written with, whether this package loads it (current, and reason when not), its formats and counts. Throws only when the bytes are neither (too short, or another magic). Words 3 onwards are read as this package's format version places them: when formatVersion differs, current is false and those fields may mean nothing.

      Parameters

      • bytes: ArrayBuffer | ArrayBufferView<ArrayBufferLike>

      Returns SerializedHeader