Nameless Engine
Loading...
Searching...
No Matches
VulkanFrameResource.h
1#pragma once
2
3// Standard.
4#include <optional>
5
6// Custom.
7#include "render/general/resource/frame/FrameResource.h"
8#include "misc/Error.h"
9
10// External.
11#include "vulkan/vulkan.h"
12
13namespace ne {
14 class Renderer;
15
18 virtual ~VulkanFrameResource() override;
19
21 VkCommandBuffer pCommandBuffer = nullptr;
22
24 VkFence pFence = nullptr;
25
26 private:
34 [[nodiscard]] virtual std::optional<Error> initialize(Renderer* pRenderer) override;
35
37 Renderer* pRenderer = nullptr;
38 };
39} // namespace ne
Definition: Renderer.h:43
Definition: FrameResource.h:15
Definition: VulkanFrameResource.h:17
Renderer * pRenderer
Definition: VulkanFrameResource.h:37
VkCommandBuffer pCommandBuffer
Definition: VulkanFrameResource.h:21
VkFence pFence
Definition: VulkanFrameResource.h:24
virtual std::optional< Error > initialize(Renderer *pRenderer) override
Definition: VulkanFrameResource.cpp:52