This is useful for unit tests. The content of the swapchain can be read to main memory with Renderer::readPixels(). This PR doesn't implement this new feature in the following backends and platforms (TODO): VulkanDriver.cpp MetalDriver.mm PlatformWGL.cpp PlatformWebGL.cpp PlatformCocoaTouchGL.mm