pub struct CopyExternalImageSourceInfo {
pub source: ExternalImageSource,
pub origin: Origin2d,
pub flip_y: bool,
}Available on
web only.Expand description
View of an external texture that can be used to copy to a texture.
Corresponds to WebGPU GPUCopyExternalImageSourceInfo.
Fields§
§source: ExternalImageSourceThe texture to be copied from. The copy source data is captured at the moment the copy is issued.
origin: Origin2dThe 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: boolIf 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 CopyExternalImageSourceInfo
impl Clone for CopyExternalImageSourceInfo
Source§fn clone(&self) -> CopyExternalImageSourceInfo
fn clone(&self) -> CopyExternalImageSourceInfo
Returns a duplicate 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 CopyExternalImageSourceInfo
impl RefUnwindSafe for CopyExternalImageSourceInfo
impl Send for CopyExternalImageSourceInfo
impl Sync for CopyExternalImageSourceInfo
impl Unpin for CopyExternalImageSourceInfo
impl UnwindSafe for CopyExternalImageSourceInfo
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