Function getMaxValidTextureSizeForFormatAndDimension

  • Returns the maximum valid size in each dimension for a given texture format. This is useful because compressed formats must be a multiple of blocks in size so, for example, the largest valid width of a 2d texture roundDown(device.limits.maxTextureDimension2D, blockWidth)

    Parameters

    • device: GPUDevice
    • format: GPUTextureFormat
    • dimension: GPUTextureDimension

    Returns [number, number, number]

Generated using TypeDoc