Loading...
Searching...
No Matches
score::gfx::SwapChainFrameGuard Struct Reference
Closes a swapchain frame if the scope is left without presenting it. More...
Detailed Description
Closes a swapchain frame if the scope is left without presenting it.
Armed after a successful beginFrame and disarmed by release() once the normal endFrame has run; the destructor only fires on the paths that never reach it, where the alternative is a QRhi stuck in inFrame for good.
Public Member Functions | |
| SwapChainFrameGuard (QRhi &rhi, QRhiSwapChain &swapChain) noexcept | |
| SwapChainFrameGuard (const SwapChainFrameGuard &)=delete | |
| SwapChainFrameGuard (SwapChainFrameGuard &&)=delete | |
| SwapChainFrameGuard & | operator= (const SwapChainFrameGuard &)=delete |
| SwapChainFrameGuard & | operator= (SwapChainFrameGuard &&)=delete |
| void | release () noexcept |
The documentation for this struct was generated from the following file: