pub struct BufferImageCopy {
pub buffer_offset: Offset,
pub buffer_width: u32,
pub buffer_height: u32,
pub image_layers: SubresourceLayers,
pub image_offset: Offset,
pub image_extent: Extent,
}Expand description
Bundles together all the parameters needed to copy a buffer to an image or vice-versa.
Fields§
§buffer_offset: OffsetBuffer offset in bytes.
buffer_width: u32Width of a buffer ‘row’ in texels.
buffer_height: u32Height of a buffer ‘image slice’ in texels.
image_layers: SubresourceLayersThe image subresource.
image_offset: OffsetThe offset of the portion of the image to copy.
image_extent: ExtentSize of the portion of the image to copy.
Trait Implementations§
Source§impl Clone for BufferImageCopy
impl Clone for BufferImageCopy
Source§fn clone(&self) -> BufferImageCopy
fn clone(&self) -> BufferImageCopy
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 BufferImageCopy
impl RefUnwindSafe for BufferImageCopy
impl Send for BufferImageCopy
impl Sync for BufferImageCopy
impl Unpin for BufferImageCopy
impl UnwindSafe for BufferImageCopy
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