logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_GPUTextureRegion - A structure specifying a region of a texture.

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;

See Also