hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/platform/vulkan/vulkan_vertex_array.cpp
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
commit0262eeea8762cdeb14c98d22473ebf0fd6b37bf9 (patch)
treed8675a753433a5a0fce16e7380fac3dc3bd2ee35 /src/platform/vulkan/vulkan_vertex_array.cpp
parent1b251bd174527951eec220ecbcb7eca89328e5b8 (diff)
chore: prepare for Vulkan
Diffstat (limited to 'src/platform/vulkan/vulkan_vertex_array.cpp')
-rw-r--r--src/platform/vulkan/vulkan_vertex_array.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/platform/vulkan/vulkan_vertex_array.cpp b/src/platform/vulkan/vulkan_vertex_array.cpp
new file mode 100644
index 0000000..31c2f74
--- /dev/null
+++ b/src/platform/vulkan/vulkan_vertex_array.cpp
@@ -0,0 +1,30 @@
+#include "vulkan_vertex_array.h"
+
+namespace Donut
+{
+ VulkanVertexArray::VulkanVertexArray()
+ {
+ }
+
+ VulkanVertexArray::~VulkanVertexArray()
+ {
+ }
+
+ void VulkanVertexArray::bind() const
+ {
+ }
+
+ void VulkanVertexArray::unbind() const
+ {
+ }
+
+ void VulkanVertexArray::add_vertex_buffer(const std::shared_ptr<VertexBuffer>& vertex_buffer)
+ {
+ m_vertex_buffers.push_back(vertex_buffer);
+ }
+
+ void VulkanVertexArray::set_index_buffer(const std::shared_ptr<IndexBuffer>& index_buffer)
+ {
+ m_index_buffer = index_buffer;
+ }
+};