aboutsummaryrefslogtreecommitdiff
path: root/src/Platform/Vulkan/VulkanRendererAPI.h
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2025-08-14 00:13:38 +0200
committerhachem <im@hachem.wtf>2025-08-14 00:13:38 +0200
commit13f2e940700b4451f6bff52eb1666475fd2de72c (patch)
tree5908ff643da3caeef9a00cee3ff10931e4698a37 /src/Platform/Vulkan/VulkanRendererAPI.h
parent641db1c86bf624527173b0323bd3c832338c3662 (diff)
[setup]: Prepare for Vulkan
Diffstat (limited to 'src/Platform/Vulkan/VulkanRendererAPI.h')
-rw-r--r--src/Platform/Vulkan/VulkanRendererAPI.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/Platform/Vulkan/VulkanRendererAPI.h b/src/Platform/Vulkan/VulkanRendererAPI.h
new file mode 100644
index 0000000..94d62e2
--- /dev/null
+++ b/src/Platform/Vulkan/VulkanRendererAPI.h
@@ -0,0 +1,22 @@
+#pragma once
+
+#include "Rendering/RendererAPI.h"
+
+namespace Donut
+{
+ class VulkanRendererAPI
+ : public RendererAPI
+ {
+ public:
+ virtual void Init() override;
+ virtual void SetViewport(uint32_t x, uint32_t y,
+ uint32_t width, uint32_t height) override;
+ virtual void SetClearColor(const glm::vec4& color) override;
+ virtual void Clear() override;
+ virtual void EnableDepthTest() override;
+ virtual void SetFaceCulling(bool enabled) override;
+
+ virtual void DrawIndexed(const std::shared_ptr<VertexArray>& vertexArray,
+ uint32_t indexCount = 0) override;
+ };
+};