aboutsummaryrefslogtreecommitdiffstats
path: root/include/compute-renderpass.hpp
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2026-05-05 00:43:54 +0200
committerladevieq <ladevie.quentin@gmail.com>2026-05-05 00:49:12 +0200
commitc3aac9026951e2a6e35e76b9c7d36e114a281453 (patch)
treebdfc2ab5d5f1d196ba8c7a76371a29911f75913e /include/compute-renderpass.hpp
parent754249d9c652ef941e6b082d2e86538d15ba9434 (diff)
Remove old api and move api-test content to src and include dirs
Diffstat (limited to 'include/compute-renderpass.hpp')
-rw-r--r--include/compute-renderpass.hpp41
1 files changed, 0 insertions, 41 deletions
diff --git a/include/compute-renderpass.hpp b/include/compute-renderpass.hpp
deleted file mode 100644
index 6799171..0000000
--- a/include/compute-renderpass.hpp
+++ /dev/null
@@ -1,41 +0,0 @@
-#pragma once
-
-#include "renderpass.hpp"
-#include "vk-api.hpp"
-
-class Texture;
-class Buffer;
-
-class ComputeRenderpass : public Renderpass {
- public:
-
- ComputeRenderpass(vkapi& api);
- ~ComputeRenderpass() override;
-
- void set_pipeline(const char* shader_name);
-
- void set_dispatch_size(size_t count_x, size_t count_y, size_t count_z);
-
- void set_ouput_texture(Texture* out_texture);
-
- void set_constant(off_t offset, uint64_t* constant);
- void set_constant(off_t offset, Texture* texture);
- void set_constant(off_t offset, Buffer* buffer);
-
- // TODO: Do not use vulkan api type
- void execute(vkrenderer& renderer, VkCommandBuffer command_buffer) final;
-
- Texture* output_texture;
-
- private:
-
- std::vector<Texture*> input_textures;
-
- uint8_t constants[64];
-
- size_t group_count_x;
- size_t group_count_y;
- size_t group_count_z;
-
- pipeline pipeline;
-};