pub struct BufferTextureCopyLocation<'frame> {
pub buffer: Buffer<'frame>,
pub layout: TexelCopyBufferLayout,
}Expand description
One logical buffer and texel layout used by a buffer-texture copy operation.
Fields§
§buffer: Buffer<'frame>Logical source or destination buffer.
layout: TexelCopyBufferLayoutTexel-copy layout within the buffer.
Implementations§
Source§impl<'frame> BufferTextureCopyLocation<'frame>
impl<'frame> BufferTextureCopyLocation<'frame>
Sourcepub const fn new(buffer: Buffer<'frame>, layout: TexelCopyBufferLayout) -> Self
pub const fn new(buffer: Buffer<'frame>, layout: TexelCopyBufferLayout) -> Self
Creates a logical buffer copy location with an explicit texel layout.
Trait Implementations§
Source§impl<'frame> Clone for BufferTextureCopyLocation<'frame>
impl<'frame> Clone for BufferTextureCopyLocation<'frame>
Source§fn clone(&self) -> BufferTextureCopyLocation<'frame>
fn clone(&self) -> BufferTextureCopyLocation<'frame>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'frame> Copy for BufferTextureCopyLocation<'frame>
Auto Trait Implementations§
impl<'frame> Freeze for BufferTextureCopyLocation<'frame>
impl<'frame> RefUnwindSafe for BufferTextureCopyLocation<'frame>
impl<'frame> Send for BufferTextureCopyLocation<'frame>
impl<'frame> Sync for BufferTextureCopyLocation<'frame>
impl<'frame> Unpin for BufferTextureCopyLocation<'frame>
impl<'frame> UnsafeUnpin for BufferTextureCopyLocation<'frame>
impl<'frame> UnwindSafe for BufferTextureCopyLocation<'frame>
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