pub struct BufferImageCopy {
pub buffer: BufferHandle,
pub buffer_offset: u64,
pub buffer_row_length: u32,
pub buffer_image_height: u32,
pub image: ImageHandle,
pub image_subresource: ImageSubresourceLayers,
pub image_offset: Offset3d,
pub image_extent: Extent3d,
}Expand description
A buffer↔image copy region.
One struct for both directions; which is the source is determined by the method called, not by a field, so the two can never disagree.
Fields§
§buffer: BufferHandleBuffer side.
buffer_offset: u64Byte offset in the buffer.
buffer_row_length: u32Texels per row in the buffer; 0 means tightly packed. Must satisfy the
backend’s row-pitch alignment when non-zero.
buffer_image_height: u32Rows per layer in the buffer; 0 means tightly packed.
image: ImageHandleImage side.
image_subresource: ImageSubresourceLayersMip level and layers touched.
image_offset: Offset3dTexel offset within the image.
image_extent: Extent3dRegion size in texels.
Trait Implementations§
Source§impl Clone for BufferImageCopy
impl Clone for BufferImageCopy
impl Copy for BufferImageCopy
Source§impl Debug for BufferImageCopy
impl Debug for BufferImageCopy
impl Eq for BufferImageCopy
Source§impl PartialEq for BufferImageCopy
impl PartialEq for BufferImageCopy
impl StructuralPartialEq for BufferImageCopy
Auto Trait Implementations§
impl Freeze for BufferImageCopy
impl RefUnwindSafe for BufferImageCopy
impl Send for BufferImageCopy
impl Sync for BufferImageCopy
impl Unpin for BufferImageCopy
impl UnsafeUnpin 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