diff options
Diffstat (limited to 'src/Rendering/Texture.cpp')
| -rw-r--r-- | src/Rendering/Texture.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Rendering/Texture.cpp b/src/Rendering/Texture.cpp index a52a469..3a86dba 100644 --- a/src/Rendering/Texture.cpp +++ b/src/Rendering/Texture.cpp @@ -1,6 +1,7 @@ #include "Texture.h" #include "Renderer.h" #include "../Platform/OpenGL/OpenGLTexture.h" +#include "../Platform/Vulkan/VulkanTexture.h" namespace Donut { @@ -10,6 +11,8 @@ namespace Donut { case RendererAPI::API::OpenGL: return std::make_shared<OpenGLTexture2D>(width, height); + case RendererAPI::API::Vulkan: + return std::make_shared<VulkanTexture2D>(width, height); case RendererAPI::API::None: return nullptr; default: @@ -23,6 +26,8 @@ namespace Donut { case RendererAPI::API::OpenGL: return std::make_shared<OpenGLTexture2D>(path); + case RendererAPI::API::Vulkan: + return std::make_shared<VulkanTexture2D>(path); case RendererAPI::API::None: return nullptr; default: |
