diff options
| author | hachem <im@hachem.wtf> | 2025-08-14 00:13:38 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2025-08-14 00:13:38 +0200 |
| commit | 13f2e940700b4451f6bff52eb1666475fd2de72c (patch) | |
| tree | 5908ff643da3caeef9a00cee3ff10931e4698a37 /src/Platform/Vulkan/VulkanIndexBuffer.h | |
| parent | 641db1c86bf624527173b0323bd3c832338c3662 (diff) | |
[setup]: Prepare for Vulkan
Diffstat (limited to 'src/Platform/Vulkan/VulkanIndexBuffer.h')
| -rw-r--r-- | src/Platform/Vulkan/VulkanIndexBuffer.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/Platform/Vulkan/VulkanIndexBuffer.h b/src/Platform/Vulkan/VulkanIndexBuffer.h new file mode 100644 index 0000000..74e69cf --- /dev/null +++ b/src/Platform/Vulkan/VulkanIndexBuffer.h @@ -0,0 +1,22 @@ +#pragma once + +#include "Rendering/IndexBuffer.h" + +namespace Donut +{ + class VulkanIndexBuffer + : public IndexBuffer + { + public: + VulkanIndexBuffer(uint32_t* indices, uint32_t count); + virtual ~VulkanIndexBuffer(); + + virtual void Bind() const override; + virtual void Unbind() const override; + + virtual uint32_t GetCount() const override { return m_Count; } + private: + uint32_t m_RendererID; + uint32_t m_Count; + }; +}; |
