From 5b361d81dbd2af0d0e99b9eb1adebea76ff05db0 Mon Sep 17 00:00:00 2001 From: hachem Date: Thu, 20 Aug 2026 02:27:02 +0200 Subject: [chore]: MASSIVE refactor + more vulkan bs --- src/rendering/index_buffer.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/rendering/index_buffer.h (limited to 'src/rendering/index_buffer.h') diff --git a/src/rendering/index_buffer.h b/src/rendering/index_buffer.h new file mode 100644 index 0000000..8389f2d --- /dev/null +++ b/src/rendering/index_buffer.h @@ -0,0 +1,18 @@ +#pragma once + +#include + +namespace Donut +{ + class IndexBuffer + { + public: + virtual ~IndexBuffer() = default; + + virtual auto bind() const -> void = 0; + virtual auto unbind() const -> void = 0; + virtual auto get_count() const -> uint32_t = 0; + + static auto create(const uint32_t* indices, uint32_t count) -> IndexBuffer*; + }; +}; -- cgit v1.3