From bdd35fc2af40496b4cff9121ea5a3a364259642d Mon Sep 17 00:00:00 2001 From: Quentin LADEVIE Date: Thu, 3 Mar 2022 17:49:03 +0100 Subject: Primitive renderpass api & use handle for low level api resources --- include/renderpass.hpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'include/renderpass.hpp') 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 -#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; }; -- cgit v1.3