SDL_GPUTextureRegion - A structure specifying a region of a texture.
Contents
Availability
This struct is available since SDL 3.2.0.
Description
Used when transferring data to or from a texture.
Name
SDL_GPUTextureRegion - A structure specifying a region of a texture.
See Also
SDL_UploadToGPUTexture(3), SDL_DownloadFromGPUTexture(3), SDL_CreateGPUTexture(3) Simple Directmedia Layer SDL 3.2.20 SDL_GPUTextureRegion(3type)
Synopsis
#include<SDL3/SDL_gpu.h>typedefstructSDL_GPUTextureRegion{SDL_GPUTexture*texture;/**<Thetextureusedinthecopyoperation.*/Uint32mip_level;/**<Themiplevelindextotransfer.*/Uint32layer;/**<Thelayerindextotransfer.*/Uint32x;/**<Theleftoffsetoftheregion.*/Uint32y;/**<Thetopoffsetoftheregion.*/Uint32z;/**<Thefrontoffsetoftheregion.*/Uint32w;/**<Thewidthoftheregion.*/Uint32h;/**<Theheightoftheregion.*/Uint32d;/**<Thedepthoftheregion.*/}SDL_GPUTextureRegion;