SDL_GetGPUSwapchainTextureFormat

Obtains the texture format of the swapchain for the given window.

Note that this format can change if the swapchain parameters change.

extern (C) nothrow @nogc extern
SDL_GetGPUSwapchainTextureFormat

Parameters

device SDL_GPUDevice*

a GPU context.

window SDL_Window*

an SDL_Window that has been claimed.

Return Value

the texture format of the swapchain.

Meta