pub struct SubtextureWrite<'a, C: GpuContext + ?Sized> {
pub device: &'a C::Device,
pub queue: &'a C::Queue,
pub texture: &'a C::Texture,
pub offset: (u32, u32),
pub size: (u32, u32),
pub format: ImageFormat,
pub data: &'a [u8],
}Expand description
The data necessary to write an image into a portion of a texture.
Fields§
§device: &'a C::DeviceThe device to render onto.
queue: &'a C::QueueThe queue to push the operation into.
texture: &'a C::TextureThe texture to write into.
offset: (u32, u32)The offset to start writing at.
size: (u32, u32)The size of the image.
format: ImageFormatThe format of the image.
data: &'a [u8]The data to write.
Auto Trait Implementations§
impl<'a, C> Freeze for SubtextureWrite<'a, C>where
C: ?Sized,
impl<'a, C> RefUnwindSafe for SubtextureWrite<'a, C>where
<C as GpuContext>::Device: RefUnwindSafe,
<C as GpuContext>::Queue: RefUnwindSafe,
<C as GpuContext>::Texture: RefUnwindSafe,
C: ?Sized,
impl<'a, C> Send for SubtextureWrite<'a, C>where
<C as GpuContext>::Device: Sync,
<C as GpuContext>::Queue: Sync,
<C as GpuContext>::Texture: Sync,
C: ?Sized,
impl<'a, C> Sync for SubtextureWrite<'a, C>where
<C as GpuContext>::Device: Sync,
<C as GpuContext>::Queue: Sync,
<C as GpuContext>::Texture: Sync,
C: ?Sized,
impl<'a, C> Unpin for SubtextureWrite<'a, C>where
C: ?Sized,
impl<'a, C> UnsafeUnpin for SubtextureWrite<'a, C>where
C: ?Sized,
impl<'a, C> UnwindSafe for SubtextureWrite<'a, C>where
<C as GpuContext>::Device: RefUnwindSafe,
<C as GpuContext>::Queue: RefUnwindSafe,
<C as GpuContext>::Texture: RefUnwindSafe,
C: ?Sized,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.