#[repr(C)]pub struct SDL_GPUTextureRegion {
pub texture: *mut SDL_GPUTexture,
pub mip_level: Uint32,
pub layer: Uint32,
pub x: Uint32,
pub y: Uint32,
pub z: Uint32,
pub w: Uint32,
pub h: Uint32,
pub d: Uint32,
}Expand description
Fields§
§texture: *mut SDL_GPUTextureThe texture used in the copy operation.
mip_level: Uint32The mip level index to transfer.
layer: Uint32The layer index to transfer.
x: Uint32The left offset of the region.
y: Uint32The top offset of the region.
z: Uint32The front offset of the region.
w: Uint32The width of the region.
h: Uint32The height of the region.
d: Uint32The depth of the region.
Trait Implementations§
Source§impl Clone for SDL_GPUTextureRegion
impl Clone for SDL_GPUTextureRegion
Source§fn clone(&self) -> SDL_GPUTextureRegion
fn clone(&self) -> SDL_GPUTextureRegion
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_GPUTextureRegion
impl Debug for SDL_GPUTextureRegion
Source§impl Default for SDL_GPUTextureRegion
impl Default for SDL_GPUTextureRegion
impl Copy for SDL_GPUTextureRegion
Auto Trait Implementations§
impl Freeze for SDL_GPUTextureRegion
impl RefUnwindSafe for SDL_GPUTextureRegion
impl !Send for SDL_GPUTextureRegion
impl !Sync for SDL_GPUTextureRegion
impl Unpin for SDL_GPUTextureRegion
impl UnwindSafe for SDL_GPUTextureRegion
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