#pragma once #include "popout_window.h" // Called from exports.cpp (render thread only) void Renderer_OnDeviceInit(ID3D11Device* device); void Renderer_OnDeviceShutdown(); // Creates/recreates the swapchain for a window. Safe to call from render thread. bool Renderer_EnsureSwapchain(PopoutWindow* win); // Releases swapchain resources. Called from WM_DESTROY on the pump thread. void Renderer_ReleaseSwapchain(PopoutWindow* win); // Blits pendingTexture into the swapchain and calls Present. Render thread only. void Renderer_Present(PopoutWindow* win);