aboutsummaryrefslogtreecommitdiffstats
path: root/include/renderpass.hpp
diff options
context:
space:
mode:
authorQuentin LADEVIE <qladevie@wanadev.fr>2022-03-03 17:49:03 +0100
committerQuentin LADEVIE <qladevie@wanadev.fr>2022-03-03 17:49:03 +0100
commitbdd35fc2af40496b4cff9121ea5a3a364259642d (patch)
tree3286b7bad9a6daa3b85e1957c44a70c0e6569f55 /include/renderpass.hpp
parent6d98e9d8b07d5c8aa0358780c38f29ffddfbf45f (diff)
Primitive renderpass api & use handle for low level api resources
Diffstat (limited to 'include/renderpass.hpp')
-rw-r--r--include/renderpass.hpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/include/renderpass.hpp b/include/renderpass.hpp
index 64947b6..a444c64 100644
--- a/include/renderpass.hpp
+++ b/include/renderpass.hpp
@@ -2,7 +2,7 @@
#include <string>
-#include "vk-api.hpp"
+#include "vk-renderer.hpp"
class Renderpass {
public:
@@ -11,17 +11,11 @@ class Renderpass {
:api(api)
{};
- virtual ~Renderpass() {
- api.destroy_pipeline(pipeline);
- }
-
- virtual void set_pipeline(std::string& shader_name) = 0;
+ virtual ~Renderpass() {};
// TODO: Do not use vulkan api type
- virtual void execute(VkCommandBuffer command_buffer) = 0;
+ virtual void execute(vkrenderer& renderer, VkCommandBuffer command_buffer) = 0;
protected:
vkapi &api;
-
- pipeline pipeline;
};