Interface GPUImageCopyTextureTagged
aspect?: GPUTextureAspect;
colorSpace?: PredefinedColorSpace;
mipLevel?: number;
origin?: GPUOrigin3D;
premultipliedAlpha?: boolean;
texture: GPUTexture;
}
Hierarchy
- GPUImageCopyTexture
- GPUImageCopyTextureTagged (view full)
Index
Properties
Properties
Optional
aspect
Optional
colorSpace
Describes the color space and encoding used to encode data into the destination texture. This [[#color-space-conversions|may 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 GPUImageCopyTextureTagged#colorSpace matches the source image, conversion may not be necessary. See [[#color-space-conversion-elision]].
Optional
mipLevel
Mip-map level of the GPUImageCopyTexture#texture to copy to/from.
Optional
origin
Defines 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
premultipliedAlpha
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 GPUImageCopyExternalImage#source is also
premultiplied, the source RGB values must be preserved even if they exceed their
corresponding alpha values.
Note:
If GPUImageCopyTextureTagged#premultipliedAlpha matches the source image,
conversion may not be necessary. See [[#color-space-conversion-elision]].
texture
Texture to copy to/from.
Defines which aspects of the GPUImageCopyTexture#texture to copy to/from.