• Computes layout information for a copy of the whole subresource at mipLevel of a GPUTexture of size baseSize with the provided format and dimension.

    Computes default values for bytesPerRow and rowsPerImage if not specified.

    MAINTENANCE_TODO: Change input/output to Required for consistency.

    Parameters

    • format: GPUTextureFormat
    • dimension: GPUTextureDimension
    • baseSize: readonly [number, number, number]
    • __namedParameters: LayoutOptions = kDefaultLayoutOptions

    Returns TextureCopyLayout

Generated using TypeDoc