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/VertexArray.cpp | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 src/Rendering/VertexArray.cpp (limited to 'src/Rendering/VertexArray.cpp') diff --git a/src/Rendering/VertexArray.cpp b/src/Rendering/VertexArray.cpp deleted file mode 100644 index 366675f..0000000 --- a/src/Rendering/VertexArray.cpp +++ /dev/null @@ -1,32 +0,0 @@ -#include "VertexArray.h" -#include "Renderer.h" - -#include "Platform/OpenGL/OpenGLVertexArray.h" -#include "Platform/Vulkan/VulkanVertexArray.h" - -namespace Donut -{ - uint32_t VertexBufferElement::GetSizeOfType(uint32_t type) - { - switch (type) - { - case 0x1406: return 4; // GL_FLOAT - case 0x1405: return 4; // GL_UNSIGNED_INT - case 0x1401: return 1; // GL_UNSIGNED_BYTE - default: return 0; - } - } - - VertexArray* VertexArray::Create() - { - switch (Renderer::GetAPI()) - { - case RendererAPI::API::OpenGL: - return new OpenGLVertexArray(); - case RendererAPI::API::Vulkan: - return new VulkanVertexArray(); - default: - return nullptr; - } - } -}; -- cgit v1.3