#include <SwapChain.h>
◆ BackbufferKey
◆ ~CSwapChain()
| Renderer::Backend::GL::CSwapChain::~CSwapChain |
( |
| ) |
|
|
override |
◆ CSwapChain()
| Renderer::Backend::GL::CSwapChain::CSwapChain |
( |
| ) |
|
|
privatedefault |
◆ AcquireNextBackbuffer()
| bool Renderer::Backend::GL::CSwapChain::AcquireNextBackbuffer |
( |
| ) |
|
|
overridevirtual |
Acquires a backbuffer for rendering a frame.
- Returns
- True if it was successfully acquired and we can render to it.
Implements Renderer::Backend::ISwapChain.
◆ Create()
| std::unique_ptr< CSwapChain > Renderer::Backend::GL::CSwapChain::Create |
( |
CDevice * |
device, |
|
|
SDL_Window * |
window, |
|
|
int |
surfaceDrawableWidth, |
|
|
int |
surfaceDrawableHeight, |
|
|
const bool |
vsync |
|
) |
| |
|
staticprivate |
◆ GetCurrentBackbuffer()
Returns a framebuffer for the current backbuffer with the required attachment operations.
It should not be called if the last AcquireNextBackbuffer call returned false.
It's guaranteed that for the same acquired backbuffer this function returns a framebuffer with the same attachments and properties except load and store operations.
- Returns
- The last successfully acquired framebuffer that wasn't presented.
Implements Renderer::Backend::ISwapChain.
◆ GetDevice()
| IDevice * Renderer::Backend::GL::CSwapChain::GetDevice |
( |
| ) |
|
|
overridevirtual |
◆ IsValid()
| bool Renderer::Backend::GL::CSwapChain::IsValid |
( |
| ) |
const |
|
inlineoverridevirtual |
- Returns
- True if we still can use the swapchain to present. A swapchain can become invalid on window resize or some other system event.
Implements Renderer::Backend::ISwapChain.
◆ Present()
| void Renderer::Backend::GL::CSwapChain::Present |
( |
| ) |
|
|
overridevirtual |
Presents the backbuffer to the swapchain queue to be flipped on a screen.
Should be called only if the last AcquireNextBackbuffer call returned true.
Implements Renderer::Backend::ISwapChain.
◆ CDevice
◆ m_BackbufferAcquired
| bool Renderer::Backend::GL::CSwapChain::m_BackbufferAcquired {false} |
|
private |
◆ m_Backbuffers
◆ m_Device
| CDevice* Renderer::Backend::GL::CSwapChain::m_Device {nullptr} |
|
private |
◆ m_SurfaceDrawableHeight
| int Renderer::Backend::GL::CSwapChain::m_SurfaceDrawableHeight {0} |
|
private |
◆ m_SurfaceDrawableWidth
| int Renderer::Backend::GL::CSwapChain::m_SurfaceDrawableWidth {0} |
|
private |
◆ m_Window
| SDL_Window* Renderer::Backend::GL::CSwapChain::m_Window {nullptr} |
|
private |
The documentation for this class was generated from the following files:
- /home/jenkins/jenkins/workspace/technical-docs/source/renderer/backend/gl/SwapChain.h
- /home/jenkins/jenkins/workspace/technical-docs/source/renderer/backend/gl/SwapChain.cpp