SPARK
0.1.0
A general purpose game engine written in C++.
|
Describes a rendering backend. (backend with type BackendType::Rendering) More...
#include <Backend.h>
Public Member Functions | |
BackendType | type () const noexcept override |
Gets the type of the backend. | |
std::vector< const IGraphicsAdapter * > | adapters () const noexcept |
Lists all available graphics adapters. | |
virtual const IGraphicsAdapter * | findAdapter (const std::optional< lib::Uuid > &id=std::nullopt) const =0 |
Finds a graphics adapter by unique id. | |
virtual IGraphicsDevice * | device (const std::string &name) noexcept=0 |
Searches for a graphics device by name. | |
virtual const IGraphicsDevice * | device (const std::string &name) const noexcept=0 |
Searches for a graphics device by name. | |
Describes a rendering backend. (backend with type BackendType::Rendering)
|
inlinenodiscardnoexcept |
Lists all available graphics adapters.
|
nodiscardpure virtualnoexcept |
Searches for a graphics device by name.
name | The name of the graphics device to find. |
nullptr
otherwise. Implemented in spark::render::RenderBackend< GraphicsDeviceType >, spark::render::RenderBackend< VulkanDevice >, and spark::render::vk::VulkanBackend.
|
nodiscardpure virtualnoexcept |
Searches for a graphics device by name.
name | The name of the graphics device to find. |
nullptr
otherwise. Implemented in spark::render::RenderBackend< GraphicsDeviceType >, spark::render::RenderBackend< VulkanDevice >, and spark::render::vk::VulkanBackend.
|
nodiscardpure virtual |
Finds a graphics adapter by unique id.
id | The unique id of the graphics adapter to find. If std::nullopt , the returned adapter is implementation-defined. |
nullptr
otherwise. Implemented in spark::render::RenderBackend< GraphicsDeviceType >, spark::render::RenderBackend< VulkanDevice >, and spark::render::vk::VulkanBackend.
|
inlinenodiscardoverridevirtualnoexcept |
Gets the type of the backend.
Implements spark::render::IBackend.