SDL_GPUTexture(3type)
β¨ SDL_GPUTexture β¨
okay bestie, welcome to the SDL3 DATATYPES corner of the manual, where we talk about SDL_GPUTexture π
π NAME π
SDL_GPUTexture β an opaque handle representing a texture.
like, it's a texture, but you don't get to peek inside. it's opaque, babe. mind your business. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_gpu.h>
typedef struct SDL_GPUTexture SDL_GPUTexture;
so you just pull in the header and boom, the type exists. it's a struct, it's opaque, it's giving mystery β¨
π¦ AVAILABILITY π¦
this struct is available since SDL 3.2.0. so if you're on something olderβ¦ no it's not. upgrade, bestie. π«Ά
π SEE ALSO π
the whole friend group, fr fr β go read these too:
SDL_CreateGPUTexture(3)SDL_UploadToGPUTexture(3)SDL_DownloadFromGPUTexture(3)SDL_CopyGPUTextureToTexture(3)SDL_BindGPUVertexSamplers(3)SDL_BindGPUVertexStorageTextures(3)SDL_BindGPUFragmentSamplers(3)SDL_BindGPUFragmentStorageTextures(3)SDL_BindGPUComputeStorageTextures(3)SDL_GenerateMipmapsForGPUTexture(3)SDL_BlitGPUTexture(3)SDL_ReleaseGPUTexture(3)
and that's the whole page, no cap. made by Simple Directmedia Layer, version SDL 3.4.18, filed under SDL_GPUTexture(3type). mwah π stay hydrated, go create a texture πβ¨
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms