#[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
A structure specifying a region of a texture.
Used when transferring data to or from a texture.
Available Since: This struct is available since SDL 3.2.0.
See Also: SDL_UploadToGPUTexture See Also: SDL_DownloadFromGPUTexture See Also: SDL_CreateGPUTexture
Fields§
§texture: *mut SDL_GPUTexture< The texture used in the copy operation.
mip_level: Uint32< The mip level index to transfer.
layer: Uint32< The layer index to transfer.
x: Uint32< The left offset of the region.
y: Uint32< The top offset of the region.
z: Uint32< The front offset of the region.
w: Uint32< The width of the region.
h: Uint32< The height of the region.
d: Uint32< The 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
Source§impl Hash for SDL_GPUTextureRegion
impl Hash 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 UnsafeUnpin 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