Function SDL_GetGPUSwapchainTextureFormat
pub unsafe extern "C" fn SDL_GetGPUSwapchainTextureFormat(
device: *mut SDL_GPUDevice,
window: *mut SDL_Window,
) -> SDL_GPUTextureFormat
Available on crate feature
dep_sdl3
only.Expand description
Obtains the texture format of the swapchain for the given window.
Note that this format can change if the swapchain parameters change.
§Parameters
device
: a GPU context.window
: anSDL_Window
that has been claimed.
§Return value
Returns the texture format of the swapchain.
§Availability
This function is available since SDL 3.2.0.