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 can 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 moreAuto Trait Implementations§
impl Freeze for ImageCopyExternalImage
impl RefUnwindSafe for ImageCopyExternalImage
impl Send for ImageCopyExternalImage
impl Sync for ImageCopyExternalImage
impl Unpin for ImageCopyExternalImage
impl UnwindSafe for ImageCopyExternalImage
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)