Documentation
    Preparing search index...

    Function textureByteLength

    • Bytes a width × height RGBA8 texture describes, chain included when mipmaps (§83, §84).

      The same summation Texture.byteLength performs, restated here because this module accounts for what it allocated rather than for what the CPU-side descriptor claims — and the claim that the two agree is only worth making if they are computed independently.

      Parameters

      • width: number
      • height: number
      • mipmaps: boolean

      Returns number