table of contents
other versions
- trixie 3.2.10+ds-1
- testing 3.2.10+ds-1
- unstable 3.2.20+ds-2
- experimental 3.3~git20250806+ds-1
SDL_GPUTextureRegion(3type) | SDL3 DATATYPES | SDL_GPUTextureRegion(3type) |
NAME¶
SDL_GPUTextureRegion - A structure specifying a region of a texture.
SYNOPSIS¶
#include <SDL3/SDL_gpu.h>
typedef struct SDL_GPUTextureRegion { SDL_GPUTexture *texture; /**< The texture used in the copy operation. */ Uint32 mip_level; /**< The mip level index to transfer. */ Uint32 layer; /**< The layer index to transfer. */ Uint32 x; /**< The left offset of the region. */ Uint32 y; /**< The top offset of the region. */ Uint32 z; /**< The front offset of the region. */ Uint32 w; /**< The width of the region. */ Uint32 h; /**< The height of the region. */ Uint32 d; /**< The depth of the region. */ } SDL_GPUTextureRegion;
DESCRIPTION¶
Used when transferring data to or from a texture.
AVAILABILITY¶
This struct is available since SDL 3.2.0.
SEE ALSO¶
SDL_UploadToGPUTexture(3), SDL_DownloadFromGPUTexture(3), SDL_CreateGPUTexture(3)
SDL 3.3.0 | Simple Directmedia Layer |