Provides swapchain information for the current frame to the outside
world via a call to sapp_get_swapchain().
NOTE: sapp_get_swapchain() must be called exactly once per frame since
on some backends it will also acquire the next swapchain image.
NOTE: when using sokol_gfx.h, don't assume that the sapp_swapchain struct
has the same memory layout as sg_swapchain! Use the sokol_log.h helper
function sglue_swapchain() to translate sapp_swapchain into a
sg_swapchain instead.
sapp_swapchain
Provides swapchain information for the current frame to the outside world via a call to sapp_get_swapchain().
NOTE: sapp_get_swapchain() must be called exactly once per frame since on some backends it will also acquire the next swapchain image.
NOTE: when using sokol_gfx.h, don't assume that the sapp_swapchain struct has the same memory layout as sg_swapchain! Use the sokol_log.h helper function sglue_swapchain() to translate sapp_swapchain into a sg_swapchain instead.