aboutsummaryrefslogtreecommitdiffstats
path: root/include/renderpass.hpp
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2022-02-14 12:45:52 +0100
committerladevieq <ladevie.quentin@gmail.com>2022-02-14 12:45:52 +0100
commitf582eb80d73a1d0b735503c8894636782406228c (patch)
treec4eb2da956a5b8977c8796b5fe25725ff518a23f /include/renderpass.hpp
parentbbb45f80298dc4a41d31805416bad19363c8eff8 (diff)
High level buffer class
Diffstat (limited to 'include/renderpass.hpp')
-rw-r--r--include/renderpass.hpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/renderpass.hpp b/include/renderpass.hpp
new file mode 100644
index 0000000..64947b6
--- /dev/null
+++ b/include/renderpass.hpp
@@ -0,0 +1,27 @@
+#pragma once
+
+#include <string>
+
+#include "vk-api.hpp"
+
+class Renderpass {
+ public:
+
+ Renderpass(vkapi& api)
+ :api(api)
+ {};
+
+ virtual ~Renderpass() {
+ api.destroy_pipeline(pipeline);
+ }
+
+ virtual void set_pipeline(std::string& shader_name) = 0;
+
+ // TODO: Do not use vulkan api type
+ virtual void execute(VkCommandBuffer command_buffer) = 0;
+
+ protected:
+ vkapi &api;
+
+ pipeline pipeline;
+};