Struct wgpu_types::ImageCopyExternalImage
source · pub struct ImageCopyExternalImage {
pub source: ExternalImageSource,
pub origin: Origin2d,
pub flip_y: bool,
}
Available on WebAssembly only.
Expand description
View of an external texture that cna be used to copy to a texture.
Corresponds to WebGPU GPUImageCopyExternalImage
.
Fields§
§source: ExternalImageSource
The texture to be copied from. The copy source data is captured at the moment the copy is issued.
origin: Origin2d
The base texel used for copying from the external image. Together
with the copy_size
argument to copy functions, defines the
sub-region of the image to copy.
Relative to the top left of the image.
Must be Origin2d::ZERO
if DownlevelFlags::UNRESTRICTED_EXTERNAL_TEXTURE_COPIES
is not supported.
flip_y: bool
If the Y coordinate of the image should be flipped. Even if this is
true, origin
is still relative to the top left.
Trait Implementations§
source§impl Clone for ImageCopyExternalImage
impl Clone for ImageCopyExternalImage
source§fn clone(&self) -> ImageCopyExternalImage
fn clone(&self) -> ImageCopyExternalImage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more