A structure specifying the parameters of a texture.
Defined in <SDL3/SDL_gpu.h>
typedef struct SDL_GPUTextureCreateInfo
{/**< The base dimensionality of the texture. */
SDL_GPUTextureType type; /**< The pixel format of the texture. */
SDL_GPUTextureFormat format; /**< How the texture is intended to be used by the client. */
SDL_GPUTextureUsageFlags usage; /**< The width of the texture. */
Uint32 width; /**< The height of the texture. */
Uint32 height; /**< The layer count or depth of the texture. This value is treated as a layer count on 2D array textures, and as a depth value on 3D textures. */
Uint32 layer_count_or_depth; /**< The number of mip levels in the texture. */
Uint32 num_levels; /**< The number of samples per texel. Only applies if the texture is used as a render target. */
SDL_GPUSampleCount sample_count;
/**< A properties ID for extensions. Should be 0 if no extensions are needed. */
SDL_PropertiesID props; } SDL_GPUTextureCreateInfo;
Usage flags can be bitwise OR'd together for combinations of usages. Note that certain usage combinations are invalid, for example SAMPLER and GRAPHICS_STORAGE.
This struct is available since SDL 3.1.3