Function generateMipmap

  • Generates mip levels from level 0 to the last mip for an existing texture

    The texture must have been created with TEXTURE_BINDING and RENDER_ATTACHMENT and been created with mip levels

    Parameters

    • device: GPUDevice

      A GPUDevice

    • texture: GPUTexture

      The texture to create mips for

    • Optional textureBindingViewDimension: GPUTextureViewDimension

      This is only needed in compatibility mode and it is only needed when the texture is going to be used as a cube map.

    Returns void

Generated using TypeDoc