21 lines
535 B
C++
21 lines
535 B
C++
#pragma once
|
|
|
|
#include "cve_window.hpp"
|
|
#include "cve_pipeline.hpp"
|
|
#include "cve_device.hpp"
|
|
|
|
namespace cve {
|
|
class FirstApp {
|
|
public:
|
|
static constexpr int WIDTH = 800;
|
|
static constexpr int HEIGHT = 600;
|
|
|
|
void run();
|
|
private:
|
|
CveWindow cveWindow{WIDTH, HEIGHT, "Hello Vulkan!"};
|
|
CveDevice cveDevice{cveWindow};
|
|
CvePipeline cvePipeline{cveDevice, "shaders/simple_shader.vert.spv",
|
|
"shaders/simple_shader.frag.spv", CvePipeline::defaultPipelineConfigInfo(WIDTH, HEIGHT)};
|
|
};
|
|
}
|