More pipelining

This commit is contained in:
2026-02-20 10:33:11 +00:00
parent e5085cb791
commit 958bf93546
4 changed files with 20 additions and 4 deletions

View File

@@ -2,6 +2,7 @@
#include "cve_window.hpp"
#include "cve_pipeline.hpp"
#include "cve_device.hpp"
namespace cve {
class FirstApp {
@@ -12,7 +13,8 @@ namespace cve {
void run();
private:
CveWindow cveWindow{WIDTH, HEIGHT, "Hello Vulkan!"};
CvePipeline cvePipeline{"shaders/simple_shader.vert.spv",
"shaders/simple_shader.frag.spv"};
CveDevice cveDevice{cveWindow};
CvePipeline cvePipeline{cveDevice, "shaders/simple_shader.vert.spv",
"shaders/simple_shader.frag.spv", CvePipeline::defaultPipelineConfigInfo(WIDTH, HEIGHT)};
};
}