#[repr(C)]pub struct SDL_GPUBlitRegion {
pub texture: *mut SDL_GPUTexture,
pub mip_level: Uint32,
pub layer_or_depth_plane: Uint32,
pub x: Uint32,
pub y: Uint32,
pub w: Uint32,
pub h: Uint32,
}Expand description
Fields§
§texture: *mut SDL_GPUTextureThe texture.
mip_level: Uint32The mip level index of the region.
layer_or_depth_plane: Uint32The layer index or depth plane of the region. This value is treated as a layer index on 2D array and cube textures, and as a depth plane on 3D textures.
x: Uint32The left offset of the region.
y: Uint32The top offset of the region.
w: Uint32The width of the region.
h: Uint32The height of the region.
Trait Implementations§
Source§impl Clone for SDL_GPUBlitRegion
impl Clone for SDL_GPUBlitRegion
Source§fn clone(&self) -> SDL_GPUBlitRegion
fn clone(&self) -> SDL_GPUBlitRegion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SDL_GPUBlitRegion
impl Debug for SDL_GPUBlitRegion
impl Copy for SDL_GPUBlitRegion
Auto Trait Implementations§
impl Freeze for SDL_GPUBlitRegion
impl RefUnwindSafe for SDL_GPUBlitRegion
impl !Send for SDL_GPUBlitRegion
impl !Sync for SDL_GPUBlitRegion
impl Unpin for SDL_GPUBlitRegion
impl UnwindSafe for SDL_GPUBlitRegion
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