Overte C++ Documentation
gpu::SwapChain Class Reference

Base class for swapchains. More...

#include <ResourceSwapChain.h>

Inheritance diagram for gpu::SwapChain:

Public Member Functions

 SwapChain (uint8_t size=2U)
 
void advance ()
 
uint8_t getSize () const
 

Protected Attributes

const uint8_t _size
 Number of objects stored in the swapchain.
 
uint8_t _frontIndex { 0U }
 Index of the current object in the circular buffer.
 

Detailed Description

Base class for swapchains.

Constructor & Destructor Documentation

◆ SwapChain()

gpu::SwapChain::SwapChain ( uint8_t  size = 2U)
inline
Parameters
sizeNumber of objects stored in the swapchain.

Member Function Documentation

◆ 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: