pub struct TexturePatch<'a> {
pub layer: u32,
pub x: u32,
pub y: u32,
pub width: u32,
pub height: u32,
pub pixels: &'a [u8],
}Expand description
Texels written over an upload_cleared_texture image as it is created: a
width by height rectangle of layer layer, its top-left texel at x,
y.
Fields§
§layer: u32The array layer the rectangle is written to.
x: u32The rectangle’s left column.
y: u32The rectangle’s top row.
width: u32Its width in texels.
height: u32Its height in texels.
pixels: &'a [u8]Exactly width * height * texel_size bytes, tightly packed, rows top to
bottom.
Trait Implementations§
Source§impl<'a> Clone for TexturePatch<'a>
impl<'a> Clone for TexturePatch<'a>
Source§fn clone(&self) -> TexturePatch<'a>
fn clone(&self) -> TexturePatch<'a>
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<'a> Copy for TexturePatch<'a>
Auto Trait Implementations§
impl<'a> Forget for TexturePatch<'a>
impl<'a> Freeze for TexturePatch<'a>
impl<'a> RefUnwindSafe for TexturePatch<'a>
impl<'a> Send for TexturePatch<'a>
impl<'a> Sync for TexturePatch<'a>
impl<'a> Unpin for TexturePatch<'a>
impl<'a> UnsafeUnpin for TexturePatch<'a>
impl<'a> UnwindSafe for TexturePatch<'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