Faro Engine 0.0.0.b519570 (main)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Faro::GraphicsSwapchain Class Referenceabstract

#include <GraphicsSwapchain.hpp>

Inheritance diagram for Faro::GraphicsSwapchain:
Faro::IGraphicsAdapterChild Faro::IObject Faro::GraphicsSwapchainVK

Public Member Functions

virtual void Init (GraphicsAdapter *adapter, Window *window)
 
void Destroy () override
 Run the destruction logic of this class. This also frees its memory.
 
virtual void Present ()=0
 
GraphicsSemaphoreGetSyncPoint (uint8 imageIndex)
 
void Init (GraphicsAdapter *adapter)
 Initialize this as a child object for an adapter. Also invokes IObject::Init, derived classes should use that for initialization.
 
GraphicsAdapterGetAdapter ()
 
template<class T >
T * GetTypedAdapter ()
 

Public Attributes

GraphicsSwapchainImageContainerbackbuffer = nullptr
 

Protected Member Functions

void CreateBackbuffer ()
 
void Init () override
 Run the initialization logic of this object. Should be overriden by deriving classes.
 

Protected Attributes

Array< GraphicsSemaphore * > bufferReadySync
 

Member Function Documentation

◆ CreateBackbuffer()

void Faro::GraphicsSwapchain::CreateBackbuffer ( )
protected

◆ Destroy()

void Faro::GraphicsSwapchain::Destroy ( )
overridevirtual

Run the destruction logic of this class. This also frees its memory.

Warning
When overriding, the super call must be performed last

Reimplemented from Faro::IObject.

Reimplemented in Faro::GraphicsSwapchainVK.

◆ GetAdapter()

GraphicsAdapter * Faro::IGraphicsAdapterChild::GetAdapter ( )
inherited

◆ GetSyncPoint()

GraphicsSemaphore * Faro::GraphicsSwapchain::GetSyncPoint ( uint8  imageIndex)

◆ GetTypedAdapter()

template<class T >
T * Faro::IGraphicsAdapterChild::GetTypedAdapter ( )
inlineinherited

◆ Init() [1/3]

void Faro::IGraphicsAdapterChild::Init ( )
overrideprotectedvirtualinherited

Run the initialization logic of this object. Should be overriden by deriving classes.

Reimplemented from Faro::IObject.

◆ Init() [2/3]

void Faro::IGraphicsAdapterChild::Init ( GraphicsAdapter adapter)
inherited

Initialize this as a child object for an adapter. Also invokes IObject::Init, derived classes should use that for initialization.

Parameters
adapterGraphics adapter to initialize this child on.

◆ Init() [3/3]

void Faro::GraphicsSwapchain::Init ( GraphicsAdapter adapter,
Window window 
)
virtual

Reimplemented in Faro::GraphicsSwapchainVK.

◆ Present()

virtual void Faro::GraphicsSwapchain::Present ( )
pure virtual

Implemented in Faro::GraphicsSwapchainVK.

Member Data Documentation

◆ backbuffer

GraphicsSwapchainImageContainer* Faro::GraphicsSwapchain::backbuffer = nullptr

◆ bufferReadySync

Array<GraphicsSemaphore*> Faro::GraphicsSwapchain::bufferReadySync
protected

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