pub struct GpuTextureUploadRect { /* private fields */ }Expand description
Queued dirty-rectangle sub-region upload for R8/RGBA8 glyph atlases and resident GPU image textures.
Implementations§
Source§impl GpuTextureUploadRect
impl GpuTextureUploadRect
pub fn get_format(&self) -> GpuAtlasPixelFormat
pub fn get_mut_format(&mut self) -> &mut GpuAtlasPixelFormat
pub fn set_format( &mut self, val: GpuAtlasPixelFormat, ) -> &mut GpuTextureUploadRect
pub fn get_texture_slot(&self) -> u8
pub fn get_mut_texture_slot(&mut self) -> &mut u8
pub fn set_texture_slot(&mut self, val: u8) -> &mut GpuTextureUploadRect
pub fn get_x(&self) -> u32
pub fn get_mut_x(&mut self) -> &mut u32
pub fn set_x(&mut self, val: u32) -> &mut GpuTextureUploadRect
pub fn get_y(&self) -> u32
pub fn get_mut_y(&mut self) -> &mut u32
pub fn set_y(&mut self, val: u32) -> &mut GpuTextureUploadRect
pub fn get_width(&self) -> u32
pub fn get_mut_width(&mut self) -> &mut u32
pub fn set_width(&mut self, val: u32) -> &mut GpuTextureUploadRect
pub fn get_height(&self) -> u32
pub fn get_mut_height(&mut self) -> &mut u32
pub fn set_height(&mut self, val: u32) -> &mut GpuTextureUploadRect
pub fn get_fence_id(&self) -> u64
pub fn get_mut_fence_id(&mut self) -> &mut u64
pub fn set_fence_id(&mut self, val: u64) -> &mut GpuTextureUploadRect
Source§impl GpuTextureUploadRect
impl GpuTextureUploadRect
pub fn new( format: GpuAtlasPixelFormat, texture_slot: u8, x: u32, y: u32, width: u32, height: u32, fence_id: u64, ) -> GpuTextureUploadRect
Trait Implementations§
Source§impl Clone for GpuTextureUploadRect
impl Clone for GpuTextureUploadRect
Source§fn clone(&self) -> GpuTextureUploadRect
fn clone(&self) -> GpuTextureUploadRect
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 Copy for GpuTextureUploadRect
Source§impl Debug for GpuTextureUploadRect
impl Debug for GpuTextureUploadRect
Source§impl Default for GpuTextureUploadRect
impl Default for GpuTextureUploadRect
Source§fn default() -> GpuTextureUploadRect
fn default() -> GpuTextureUploadRect
Returns the “default value” for a type. Read more
impl Eq for GpuTextureUploadRect
Source§impl Hash for GpuTextureUploadRect
impl Hash for GpuTextureUploadRect
Source§impl PartialEq for GpuTextureUploadRect
impl PartialEq for GpuTextureUploadRect
impl StructuralPartialEq for GpuTextureUploadRect
Auto Trait Implementations§
impl Forget for GpuTextureUploadRect
impl Freeze for GpuTextureUploadRect
impl Move for GpuTextureUploadRect
impl RefUnwindSafe for GpuTextureUploadRect
impl Send for GpuTextureUploadRect
impl Sync for GpuTextureUploadRect
impl Unpin for GpuTextureUploadRect
impl UnsafeUnpin for GpuTextureUploadRect
impl UnwindSafe for GpuTextureUploadRect
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