Overte C++ Documentation
gpu::ResourceSwapChain< R > Class Template Reference

#include <ResourceSwapChain.h>

Inheritance diagram for gpu::ResourceSwapChain< R >:
Collaboration diagram for gpu::ResourceSwapChain< R >:

Public Member Functions

 ResourceSwapChain (const std::vector< TypePointer > &v)
 
const TypePointer & get (unsigned int index) const
 
- Public Member Functions inherited from gpu::SwapChain
 SwapChain (uint8_t size=2U)
 
void advance ()
 
uint8_t getSize () const
 

Additional Inherited Members

- Protected Attributes inherited from gpu::SwapChain
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

template<class R>
class gpu::ResourceSwapChain< R >

Swapchain container template. Used with Framebuffer objects.

Constructor & Destructor Documentation

◆ ResourceSwapChain()

template<class R >
gpu::ResourceSwapChain< R >::ResourceSwapChain ( const std::vector< TypePointer > &  v)
inline
Parameters
vType of the object that is stored in the swapchain.

Member Function Documentation

◆ get()

template<class R >
const TypePointer& gpu::ResourceSwapChain< R >::get ( unsigned int  index) const
inline

For example index = 0 returns active object, and index = 1 returns next one.

Parameters
indexObject index relative to currently active object.
Returns
Reference to the object with particular index in relation to currently active object.

The documentation for this class was generated from the following file: