webgpu-utils
    Preparing search index...

    Function getSizeForMipFromTexture

    • Gets the size of a mipLevel. Returns an array of 3 numbers [width, height, depthOrArrayLayers]

      Parameters

      • texture: GPUTexture
      • mipLevel: number

      Returns number[]