A structure specifying a region of a texture.
Defined in <SDL3/SDL_gpu.h>
typedef struct SDL_GPUTextureRegion
{/**< The texture used in the copy operation. */
SDL_GPUTexture *texture; /**< The mip level index to transfer. */
Uint32 mip_level; /**< The layer index to transfer. */
Uint32 layer; /**< The left offset of the region. */
Uint32 x; /**< The top offset of the region. */
Uint32 y; /**< The front offset of the region. */
Uint32 z; /**< The width of the region. */
Uint32 w; /**< The height of the region. */
Uint32 h; /**< The depth of the region. */
Uint32 d; } SDL_GPUTextureRegion;
Used when transferring data to or from a texture.
This struct is available since SDL 3.1.3