Documentation
    Preparing search index...

    Function decodePickId

    • Decodes one read-back RGBA8 texel into the id value the pass wrote: 0 for "nothing" (the clear), otherwise the candidate's table index + 1 — encodePickId's inverse. Exact for every id up to MAX_PICK_CANDIDATES (the sum stays far below 2⁵³).

      Parameters

      • texel: Uint8Array

      Returns number