# SDL_GetPixelFormatFromGPUTextureFormat Get the SDL pixel format corresponding to a GPU texture format. ## Header File Defined in [](https://github.com/libsdl-org/SDL/blob/main/include/SDL3/SDL_gpu.h) ## Syntax ```c SDL_PixelFormat SDL_GetPixelFormatFromGPUTextureFormat(SDL_GPUTextureFormat format); ``` ## Function Parameters | | | | | -------------------------------------------- | ---------- | ----------------- | | [SDL_GPUTextureFormat](SDL_GPUTextureFormat) | **format** | a texture format. | ## Return Value ([SDL_PixelFormat](SDL_PixelFormat)) Returns the corresponding pixel format, or [SDL_PIXELFORMAT_UNKNOWN](SDL_PIXELFORMAT_UNKNOWN) if there is no corresponding pixel format. ## Version This function is available since SDL 3.4.0. ---- [CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction), [CategoryGPU](CategoryGPU)