A swapchain object
Manual page : Swap Chains
SwapChain |
( |
SwapChain & |
| ) |
|
|
delete |
virtual bool acquire |
( |
const std::shared_ptr< Fence > & |
fence | ) |
|
|
pure virtual |
Acquires the next frame buffer.
- Returns
false
if the operation failed.
auto getAspectRatio |
( |
| ) |
const |
|
inline |
Returns the swap chain with/height ratio
auto getCurrentFrameIndex |
( |
| ) |
const |
|
inline |
Returns the current frame index. Note that frame indexes are not necessarily incremental
const Extent& getExtent |
( |
| ) |
const |
|
inline |
Returns the swap chain extent
Returns the pixel format of the frame buffers
auto getFramesInFlight |
( |
| ) |
const |
|
inline |
Returns the number of frame/back buffers in the swap chain
virtual void nextFrameIndex |
( |
| ) |
|
|
pure virtual |
SwapChain& operator= |
( |
const SwapChain & |
| ) |
|
|
delete |
Presents the current frame buffer into the surface
virtual void recreate |
( |
| ) |
|
|
pure virtual |
Recreates the swap chain if the extent changed (in case of a window resizing)
virtual void waitIdle |
( |
| ) |
|
|
pure virtual |
Waits for the last present operation to end
uint32_t currentFrameIndex {0} |
|
protected |