SDL_GPUTextureCreateInfo - A structure specifying the parameters of a texture.
Contents
Availability
This struct is available since SDL 3.2.0.
Description
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.
Header File
Defined in SDL3/SDL_gpu.h
Name
SDL_GPUTextureCreateInfo - A structure specifying the parameters of a texture.
See Also
•(3), SDL_CreateGPUTexture(3), •(3), SDL_GPUTextureType(3type), •(3), SDL_GPUTextureFormat(3type), •(3), SDL_GPUTextureUsageFlags(3type), •(3), SDL_GPUSampleCount(3type) Simple Directmedia Layer SDL 3.2.10 SDL_GPUTextureCreateInfo(3type)
Synopsis
#include"SDL3/SDL.h"typedefstructSDL_GPUTextureCreateInfo{SDL_GPUTextureTypetype;/**<Thebasedimensionalityofthetexture.*/SDL_GPUTextureFormatformat;/**<Thepixelformatofthetexture.*/SDL_GPUTextureUsageFlagsusage;/**<Howthetextureisintendedtobeusedbytheclient.*/Uint32width;/**<Thewidthofthetexture.*/Uint32height;/**<Theheightofthetexture.*/Uint32layer_count_or_depth;/**<Thelayercountordepthofthetexture.Thisvalueistreatedasalayercounton2Darraytextures,andasadepthvalueon3Dtextures.*/Uint32num_levels;/**<Thenumberofmiplevelsinthetexture.*/SDL_GPUSampleCountsample_count;/**<Thenumberofsamplespertexel.Onlyappliesifthetextureisusedasarendertarget.*/SDL_PropertiesIDprops;/**<ApropertiesIDforextensions.Shouldbe0ifnoextensionsareneeded.*/}SDL_GPUTextureCreateInfo;