Interface GPUCopyExternalImageSourceInfo
interface GPUCopyExternalImageSourceInfo {
flipY?: boolean;
origin?: GPUOrigin2D;
source: GPUCopyExternalImageSource;
}
flipY?: boolean;
origin?: GPUOrigin2D;
source: GPUCopyExternalImageSource;
}
Properties
Optional
flipY
flipY?: boolean
Optional
origin
Defines the origin of the copy - the minimum (top-left) corner of the source sub-region to copy from.
Together with copySize
, defines the full copy sub-region.
source
The source of the texel copy. The copy source data is captured at the moment that GPUQueue#copyExternalImageToTexture is issued. Source size is determined as described by the external source dimensions table.
Describes whether the source image is vertically flipped, or not. If this option is set to
true
, the copy is flipped vertically: the bottom row of the source region is copied into the first row of the destination region, and so on. The GPUCopyExternalImageSourceInfo#origin option is still relative to the top-left corner of the source image, increasing downward.