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 | 0262eeea8762cdeb14c98d22473ebf0fd6b37bf9 (patch) | |
| tree | d8675a753433a5a0fce16e7380fac3dc3bd2ee35 /src/platform/vulkan/vulkan_vertex_array.cpp | |
| parent | 1b251bd174527951eec220ecbcb7eca89328e5b8 (diff) | |
chore: prepare for Vulkan
Diffstat (limited to 'src/platform/vulkan/vulkan_vertex_array.cpp')
| -rw-r--r-- | src/platform/vulkan/vulkan_vertex_array.cpp | 30 |
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; + } +}; |
