Base class for swapchains.
More...
#include <ResourceSwapChain.h>
|
|
const uint8_t | _size |
| | Number of objects stored in the swapchain.
|
| |
|
uint8_t | _frontIndex { 0U } |
| | Index of the current object in the circular buffer.
|
| |
Base class for swapchains.
◆ SwapChain()
| gpu::SwapChain::SwapChain |
( |
uint8_t |
size = 2U | ) |
|
|
inline |
- Parameters
-
| size | Number of objects stored in the swapchain. |
◆ advance()
| void gpu::SwapChain::advance |
( |
| ) |
|
|
inline |
Choose next object from circular buffer as the active one.
◆ getSize()
| uint8_t gpu::SwapChain::getSize |
( |
| ) |
const |
|
inline |
- Returns
- Number of objects stored in the swapchain.
The documentation for this class was generated from the following file: