Function getTextureCopyLayout
- getTextureCopyLayout(format, dimension, baseSize, __namedParameters?): TextureCopyLayout
Parameters
format: GPUTextureFormat
dimension: GPUTextureDimension
baseSize: readonly [number, number, number]
__namedParameters: LayoutOptions = kDefaultLayoutOptions
Computes layout information for a copy of the whole subresource at
mipLevel
of a GPUTexture of sizebaseSize
with the providedformat
anddimension
.Computes default values for
bytesPerRow
androwsPerImage
if not specified.MAINTENANCE_TODO: Change input/output to Required for consistency.