Better pipeline...

This commit is contained in:
2026-02-22 15:43:21 +00:00
parent 8f4792aa2d
commit c7bed7d58e
7 changed files with 42 additions and 31 deletions

View File

@@ -4,7 +4,6 @@
#include "cve_pipeline.hpp"
#include "cve_device.hpp"
#include "cve_swap_chain.hpp"
#include "cve_model.hpp"
#include "cve_game_object.hpp"
#include <memory>
@@ -24,7 +23,7 @@ namespace cve {
void run();
private:
void loadModels();
void loadGameObjects();
void createPipelineLayout();
void createPipeline();
void createCommandBuffers();
@@ -32,6 +31,7 @@ namespace cve {
void drawFrame();
void recreateSwapChain();
void recordCommandBuffer(int imageIndex);
void renderGameObjects(VkCommandBuffer commandBuffer);
CveWindow cveWindow{WIDTH, HEIGHT, "Hello Vulkan!"};
CveDevice cveDevice{cveWindow};
@@ -39,6 +39,6 @@ namespace cve {
std::unique_ptr<CvePipeline> cvePipeline;
VkPipelineLayout pipelineLayout;
std::vector<VkCommandBuffer> commandBuffers;
std::unique_ptr<CveModel> cveModel;
std::vector<CveGameObject> gameObjects;
};
}