-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSuzumeRenderSystem.hpp
More file actions
34 lines (27 loc) · 934 Bytes
/
Copy pathSuzumeRenderSystem.hpp
File metadata and controls
34 lines (27 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#pragma once
#include "SuzumeDevice.hpp"
#include "SuzumeGameObject.hpp"
#include "SuzumePipeline.hpp"
#include "vulkan/vulkan_core.h"
// random include libraries that are standard :3
#include <memory>
#include <vector>
namespace Suzume {
class SuzumeRenderSystem {
public:
static constexpr int WIDTH = 800;
static constexpr int HEIGHT = 600;
SuzumeRenderSystem(SuzumeDevice &deviceRef, VkRenderPass renderPass);
~SuzumeRenderSystem();
SuzumeRenderSystem(const SuzumeRenderSystem &) = delete;
SuzumeRenderSystem &operator=(const SuzumeRenderSystem &) = delete;
void renderGameObjects(VkCommandBuffer commandBuffer,
std::vector<SuzumeGameObject> &gameObjects);
private:
void createPipelineLayout();
void createPipeline(VkRenderPass renderPass);
SuzumeDevice &suzumeDevice;
std::unique_ptr<SuzumePipeline> suzumePipeline;
VkPipelineLayout pipelineLayout;
};
} // namespace Suzume