Better pipeline...
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user