diff options
| author | hachem <im@hachem.wtf> | 2026-08-20 02:27:02 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-20 02:40:07 +0200 |
| commit | 5b361d81dbd2af0d0e99b9eb1adebea76ff05db0 (patch) | |
| tree | 34db1df17e8c7248aeeb92156d635d31c2484e3f /src/Rendering/VertexArray.cpp | |
| parent | e3abaaf59777258ba06705135a0cafcb5918ad12 (diff) | |
[chore]: MASSIVE refactor + more vulkan bs
Diffstat (limited to 'src/Rendering/VertexArray.cpp')
| -rw-r--r-- | src/Rendering/VertexArray.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
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; - } - } -}; |
