AuxiliaryWindowPresenter class
Shows a texture in a window besides the main one with the graphics backend, see AuxiliaryWindow.
A thin owner of an auxiliary swap chain of the RHI device. OpenGL copies the texture into the window in a context of the window that shares the textures of the main one, Direct3D 11 copies it into a swap chain of the window, Vulkan and Metal blit it into their swap chain of the window when the frame is presented.
Public static functions
-
static auto Create(RHI::
AuxiliarySwapchainDesc&& desc, Vector2i pixelSize) -> std:: unique_ptr<AuxiliaryWindowPresenter> - Makes a presenter for a window of a size in pixels,
nullptrif the graphics backend can't present into it. - static auto IsSupported() -> bool
- Returns
trueif the graphics backend can present into another window.
Constructors, destructors, conversion operators
- ~AuxiliaryWindowPresenter()
- AuxiliaryWindowPresenter(const AuxiliaryWindowPresenter&) deleted