![]() |
Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
#include <ISwapChain.h>


Public Member Functions | |
| virtual bool | IsValid () const =0 |
| virtual bool | AcquireNextBackbuffer ()=0 |
| Acquires a backbuffer for rendering a frame. More... | |
| virtual IFramebuffer * | GetCurrentBackbuffer (const AttachmentLoadOp colorAttachmentLoadOp, const AttachmentStoreOp colorAttachmentStoreOp, const AttachmentLoadOp depthStencilAttachmentLoadOp, const AttachmentStoreOp depthStencilAttachmentStoreOp)=0 |
| Returns a framebuffer for the current backbuffer with the required attachment operations. More... | |
| virtual void | Present ()=0 |
| Presents the backbuffer to the swapchain queue to be flipped on a screen. More... | |
Public Member Functions inherited from Renderer::Backend::IDeviceObject< ISwapChain > | |
| virtual | ~IDeviceObject () |
| virtual IDevice * | GetDevice ()=0 |
| T * | As () |
|
pure virtual |
Acquires a backbuffer for rendering a frame.
Implemented in Renderer::Backend::Dummy::CSwapChain, Renderer::Backend::GL::CSwapChain, and Renderer::Backend::Vulkan::CSwapChain.
|
pure virtual |
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.
Implemented in Renderer::Backend::Dummy::CSwapChain, Renderer::Backend::GL::CSwapChain, and Renderer::Backend::Vulkan::CSwapChain.
|
pure virtual |
Implemented in Renderer::Backend::Dummy::CSwapChain, Renderer::Backend::GL::CSwapChain, and Renderer::Backend::Vulkan::CSwapChain.
|
pure virtual |
Presents the backbuffer to the swapchain queue to be flipped on a screen.
Should be called only if the last AcquireNextBackbuffer call returned true.
Implemented in Renderer::Backend::Dummy::CSwapChain, Renderer::Backend::GL::CSwapChain, and Renderer::Backend::Vulkan::CSwapChain.