SDL_GPUTextureRegion.3type - Man Page

A structure specifying a region of a texture.

Header File

Defined in SDL3/SDL_gpu.h

Synopsis

#include "SDL3/SDL.h"

typedef struct SDL_GPUTextureRegion
{
    SDL_GPUTexture *texture;  /**< The texture used in the copy operation. */
    Uint32 mip_level;         /**< The mip level index to transfer. */
    Uint32 layer;             /**< The layer index to transfer. */
    Uint32 x;                 /**< The left offset of the region. */
    Uint32 y;                 /**< The top offset of the region. */
    Uint32 z;                 /**< The front offset of the region. */
    Uint32 w;                 /**< The width of the region. */
    Uint32 h;                 /**< The height of the region. */
    Uint32 d;                 /**< The depth of the region. */
} SDL_GPUTextureRegion;

Description

Used when transferring data to or from a texture.

Availability

This struct is available since SDL 3.2.0.

See Also

·(3), SDL_UploadToGPUTexture(3), ·(3), SDL_DownloadFromGPUTexture(3)

Info

SDL 3.2.2 Simple Directmedia Layer SDL3 DATATYPES