Module that manages the Vulkan m_Instance, Surface, Window and the renderpass structure.
More...
#include <Graphics.hpp>
|
|
void | Update () |
| |
| void | CaptureScreenshot (const VirtualPath &filename, std::size_t id=0) const |
| |
|
const std::shared_ptr< CommandPool > & | GetCommandPool (const std::thread::id &threadId=std::this_thread::get_id()) |
| |
| Renderer * | GetRenderer () const |
| |
| void | SetRenderer (std::unique_ptr< Renderer > &&renderer) |
| |
|
const RenderStage * | GetRenderStage (uint32_t index) const |
| |
|
const Descriptor * | GetAttachment (const std::string &name) const |
| |
|
const PhysicalDevice * | GetPhysicalDevice () const |
| |
|
const LogicalDevice * | GetLogicalDevice () const |
| |
|
const VkPipelineCache & | GetPipelineCache () const |
| |
|
const Surface * | GetSurface (std::size_t id) const |
| |
|
const Swapchain * | GetSwapchain (std::size_t id) const |
| |
|
void | SetFramebufferResized (std::size_t id) |
| |
|
const Instance * | GetInstance () const |
| |
|
|
static std::string | StringifyResultVk (VkResult result) |
| |
|
static void | CheckVk (VkResult result) |
| |
|
template<typename T > |
| static const T * | SafeVkPtr (const std::vector< T > &vec) |
| |
|
template<typename T , std::size_t N> |
| static const T * | SafeVkPtr (const std::array< T, N > &arr) |
| |
Module that manages the Vulkan m_Instance, Surface, Window and the renderpass structure.
◆ CaptureScreenshot()
| void PixelBullet::Graphics::CaptureScreenshot |
( |
const VirtualPath & | filename, |
|
|
std::size_t | id = 0 ) const |
Takes a screenshot of the current image of the display and saves it into a image file.
- Parameters
-
| filename | The file to save the screenshot as. |
◆ GetRenderer()
| Renderer * PixelBullet::Graphics::GetRenderer |
( |
| ) |
const |
|
inline |
Gets the current renderer.
- Returns
- The renderer.
◆ SetRenderer()
| void PixelBullet::Graphics::SetRenderer |
( |
std::unique_ptr< Renderer > && | renderer | ) |
|
|
inline |
Sets the current renderer to a new renderer.
- Parameters
-
| renderer | The new renderer. |
The documentation for this class was generated from the following files:
- engine/src/PixelBullet/Graphics/Graphics.hpp
- engine/src/PixelBullet/Graphics/Graphics.cpp