Optional
aspectOptional
colorDescribes the color space and encoding used to encode data into the destination texture. This result in values outside of the range [0, 1] being written to the target texture, if its format can represent them. Otherwise, the results are clamped to the target texture format's range. Note: If colorSpace matches the source image, conversion may not be necessary. See https://www.w3.org/TR/webgpu/#color-space-conversion-elision.
Optional
mipMip-map level of the texture to copy to/from.
Optional
originDefines the origin of the copy - the minimum corner of the texture sub-region to copy to/from.
Together with copySize
, defines the full copy sub-region.
Optional
premultipliedDescribes whether the data written into the texture should have its RGB channels
premultiplied by the alpha channel, or not.
If this option is set to true
and the source is also
premultiplied, the source RGB values must be preserved even if they exceed their
corresponding alpha values.
Note:
If premultipliedAlpha matches the source image,
conversion may not be necessary. See https://www.w3.org/TR/webgpu/#color-space-conversion-elision.
Texture to copy to/from.
Generated using TypeDoc
Defines which aspects of the texture to copy to/from.