pub struct TextureSlice<'ts> { /* private fields */ }
Implementations§
Source§impl<'ts> TextureSlice<'ts>
impl<'ts> TextureSlice<'ts>
pub fn copy_to_texture( &self, encoder: &mut CommandEncoder, dst: &Texture, offset: Origin3d, )
pub fn copy_to_buffer<C: Pod>( &self, encoder: &mut CommandEncoder, dst: &mut Buffer<C>, offset: BufferAddress, )
pub fn to_image(&self, device: &Device) -> DynamicImage
Auto Trait Implementations§
impl<'ts> Freeze for TextureSlice<'ts>
impl<'ts> !RefUnwindSafe for TextureSlice<'ts>
impl<'ts> Send for TextureSlice<'ts>
impl<'ts> Sync for TextureSlice<'ts>
impl<'ts> Unpin for TextureSlice<'ts>
impl<'ts> !UnwindSafe for TextureSlice<'ts>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more