|
LiteFX 0.4.1.2025
Computer Graphics Engine
|
The base class for an app backend. More...
#include <app.hpp>
Inherited by LiteFX::Rendering::IRenderBackend.
Public Member Functions | |
| virtual | ~IBackend () noexcept=default |
| virtual BackendType | type () const noexcept=0 |
| Gets the type of the backend. | |
| const BackendState & | state () const noexcept |
| Returns the state of the backend. | |
| virtual StringView | name () const noexcept=0 |
| Gets the name of the backend. | |
Protected Member Functions | |
| IBackend () noexcept=default | |
| IBackend (const IBackend &)=default | |
| IBackend (IBackend &&) noexcept=default | |
| IBackend & | operator= (const IBackend &)=default |
| IBackend & | operator= (IBackend &&) noexcept=default |
| BackendState & | state () noexcept |
| Returns the state of the backend. | |
| virtual void | activate ()=0 |
| Called by the parent App, if the backend is started. | |
| virtual void | deactivate ()=0 |
| Called by the parent App, if the backend is stopped. | |
Friends | |
| class | App |
The base class for an app backend.
An App can have one or more backends configured per BackendType. However, only one backend of a specific backend type can be active at a time. Backends can be configured with a startup and shutdown callback. Starting a backend will automatically shutdown the active backend of the same type, if any. If the app exits, all backends are shutdown accordingly, allowing to properly cleanup any resources.
|
protecteddefaultnoexcept |
|
protecteddefault |
|
protecteddefaultnoexcept |
|
virtualdefaultnoexcept |
|
protectedpure virtual |
Called by the parent App, if the backend is started.
Implemented in LiteFX::Rendering::Backends::DirectX12Backend, and LiteFX::Rendering::Backends::VulkanBackend.
|
protectedpure virtual |
Called by the parent App, if the backend is stopped.
Implemented in LiteFX::Rendering::Backends::DirectX12Backend, and LiteFX::Rendering::Backends::VulkanBackend.
|
pure virtualnoexcept |
Gets the name of the backend.
Implemented in LiteFX::Rendering::Backends::DirectX12Backend, and LiteFX::Rendering::Backends::VulkanBackend.
|
inlinenoexcept |
|
inlineprotectednoexcept |
Returns the state of the backend.
|
pure virtualnoexcept |
Gets the type of the backend.
Implemented in LiteFX::Rendering::Backends::DirectX12Backend, and LiteFX::Rendering::Backends::VulkanBackend.
|
friend |