diff options
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; - } - } -}; |
