Defines which aspects of the texture to copy to/from.
Describes 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.
Mip-map level of the texture to copy to/from.
Defines the origin of the copy - the minimum corner of the texture sub-region to copy to/from.
copySize, defines the full copy sub-region.
Describes 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.
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