SDL_GPUBlitRegion - A structure specifying a region of a texture used in the blit operation.
Contents
Availability
This struct is available since SDL 3.2.0.
Header File
Defined in SDL3/SDL_gpu.h
Name
SDL_GPUBlitRegion - A structure specifying a region of a texture used in the blit operation.
See Also
•(3), SDL_BlitGPUTexture(3) Simple Directmedia Layer SDL 3.2.10 SDL_GPUBlitRegion(3type)
Synopsis
#include"SDL3/SDL.h"typedefstructSDL_GPUBlitRegion{SDL_GPUTexture*texture;/**<Thetexture.*/Uint32mip_level;/**<Themiplevelindexoftheregion.*/Uint32layer_or_depth_plane;/**<Thelayerindexordepthplaneoftheregion.Thisvalueistreatedasalayerindexon2Darrayandcubetextures,andasadepthplaneon3Dtextures.*/Uint32x;/**<Theleftoffsetoftheregion.*/Uint32y;/**<Thetopoffsetoftheregion.*/Uint32w;/**<Thewidthoftheregion.*/Uint32h;/**<Theheightoftheregion.*/}SDL_GPUBlitRegion;