pub struct CpuTexture<'frame> {
pub size: TextureSize,
pub pitch: u32,
pub data: &'frame mut [u8],
}Expand description
A CPU texture of the current frame, writable until the frame is shown.
Fields§
§size: TextureSize§pitch: u32Bytes per row.
data: &'frame mut [u8]Trait Implementations§
Auto Trait Implementations§
impl<'frame> !UnwindSafe for CpuTexture<'frame>
impl<'frame> Freeze for CpuTexture<'frame>
impl<'frame> RefUnwindSafe for CpuTexture<'frame>
impl<'frame> Send for CpuTexture<'frame>
impl<'frame> Sync for CpuTexture<'frame>
impl<'frame> Unpin for CpuTexture<'frame>
impl<'frame> UnsafeUnpin for CpuTexture<'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