pub enum Upload<'a> {
Buffer {
id: BufferId,
offset: u64,
data: &'a [u8],
},
TextureRgba8 {
id: TextureId,
data: &'a [u8],
bytes_per_row: u32,
rows_per_image: u32,
},
TextureRgba8Region {
id: TextureId,
data: &'a [u8],
origin: [u32; 3],
size: Size,
bytes_per_row: u32,
rows_per_image: u32,
},
TextureRgba16Float {
id: TextureId,
data: &'a [u16],
bytes_per_row: u32,
rows_per_image: u32,
},
}Variants§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Upload<'a>
impl<'a> RefUnwindSafe for Upload<'a>
impl<'a> Send for Upload<'a>
impl<'a> Sync for Upload<'a>
impl<'a> Unpin for Upload<'a>
impl<'a> UnsafeUnpin for Upload<'a>
impl<'a> UnwindSafe for Upload<'a>
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