sdlGetPixelFormatFromGpuTextureFormat function gpu
Get the SDL pixel format corresponding to a GPU texture format.
\param format a texture format. \returns the corresponding pixel format, or SDL_PIXELFORMAT_UNKNOWN if there is no corresponding pixel format.
\since This function is available since SDL 3.4.0.
extern SDL_DECLSPEC SDL_PixelFormat SDLCALL SDL_GetPixelFormatFromGPUTextureFormat(SDL_GPUTextureFormat format)
Implementation
int sdlGetPixelFormatFromGpuTextureFormat(int format) {
final sdlGetPixelFormatFromGpuTextureFormatLookupFunction = _libSdl
.lookupFunction<Int32 Function(Int32 format), int Function(int format)>(
'SDL_GetPixelFormatFromGPUTextureFormat',
);
return sdlGetPixelFormatFromGpuTextureFormatLookupFunction(format);
}