Made simple render system

This commit is contained in:
2026-02-22 17:27:44 +00:00
parent 8817f90ed1
commit 864c0247bb
15 changed files with 341 additions and 208 deletions

29
simple_render_system.hpp Normal file
View File

@@ -0,0 +1,29 @@
#pragma once
#include "cve_pipeline.hpp"
#include "cve_device.hpp"
#include "cve_game_object.hpp"
#include <memory>
#include <vector>
namespace cve {
class SimpleRenderSystem {
public:
SimpleRenderSystem(CveDevice &device, VkRenderPass renderPass);
~SimpleRenderSystem();
SimpleRenderSystem(const SimpleRenderSystem &) = delete;
SimpleRenderSystem &operator=(const SimpleRenderSystem &) = delete;
void renderGameObjects(VkCommandBuffer commandBuffer, std::vector<CveGameObject>& gameObjects);
private:
void createPipelineLayout();
void createPipeline(VkRenderPass renderPass);
CveDevice& cveDevice;
std::unique_ptr<CvePipeline> cvePipeline;
VkPipelineLayout pipelineLayout;
};
}