#include <SDL_gpu.h>
A structure specifying a region of a texture.
Used when transferring data to or from a texture.
- Since
- This struct is available since SDL 3.2.0.
- See also
- SDL_UploadToGPUTexture
-
SDL_DownloadFromGPUTexture
-
SDL_CreateGPUTexture
Definition at line 1372 of file SDL_gpu.h.
Uint32 SDL_GPUTextureRegion::d |
The depth of the region.
Definition at line 1382 of file SDL_gpu.h.
Uint32 SDL_GPUTextureRegion::h |
The height of the region.
Definition at line 1381 of file SDL_gpu.h.
◆ layer
Uint32 SDL_GPUTextureRegion::layer |
The layer index to transfer.
Definition at line 1376 of file SDL_gpu.h.
◆ mip_level
Uint32 SDL_GPUTextureRegion::mip_level |
The mip level index to transfer.
Definition at line 1375 of file SDL_gpu.h.
◆ texture
The texture used in the copy operation.
Definition at line 1374 of file SDL_gpu.h.
Uint32 SDL_GPUTextureRegion::w |
The width of the region.
Definition at line 1380 of file SDL_gpu.h.
Uint32 SDL_GPUTextureRegion::x |
The left offset of the region.
Definition at line 1377 of file SDL_gpu.h.
Uint32 SDL_GPUTextureRegion::y |
The top offset of the region.
Definition at line 1378 of file SDL_gpu.h.
Uint32 SDL_GPUTextureRegion::z |
The front offset of the region.
Definition at line 1379 of file SDL_gpu.h.
The documentation for this struct was generated from the following file: