Loading...
Searching...
No Matches
score::gfx::OutputConfiguration Struct Reference

Public Attributes

GraphicsApi graphicsApi {}
 
std::function< void()> onReady
 
std::function< void()> onResize
 
std::function< void()> onReleaseRenderList
 Ask the owning Graph to release + deregister the RenderList that was built against this output's QRhi.
 

Member Data Documentation

◆ onReleaseRenderList

std::function<void()> score::gfx::OutputConfiguration::onReleaseRenderList

Ask the owning Graph to release + deregister the RenderList that was built against this output's QRhi.

An output that tears its own device down outside of Graph::destroyOutputRenderList / ~Graph (a live swapchain-flag or -format toggle) MUST call this first, otherwise the Graph keeps a std::shared_ptr<RenderList> full of QRhiResources whose QRhi has been deleted — and the next renderer->release() dereferences it.

Null when the output was created outside a Graph.


The documentation for this struct was generated from the following file: