From 13f2e940700b4451f6bff52eb1666475fd2de72c Mon Sep 17 00:00:00 2001 From: hachem Date: Thu, 14 Aug 2025 00:13:38 +0200 Subject: [setup]: Prepare for Vulkan --- src/Platform/Vulkan/VulkanTexture.cpp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/Platform/Vulkan/VulkanTexture.cpp (limited to 'src/Platform/Vulkan/VulkanTexture.cpp') diff --git a/src/Platform/Vulkan/VulkanTexture.cpp b/src/Platform/Vulkan/VulkanTexture.cpp new file mode 100644 index 0000000..971972c --- /dev/null +++ b/src/Platform/Vulkan/VulkanTexture.cpp @@ -0,0 +1,31 @@ +#include "VulkanTexture.h" + +namespace Donut +{ + VulkanTexture2D::VulkanTexture2D(uint32_t width, uint32_t height) + : m_Width(width), m_Height(height) + { + // TODO(Hachem): Implement Vulkan texture creation with dimensions + } + + VulkanTexture2D::VulkanTexture2D(const std::string& path) + : m_Path(path) + { + // TODO(Hachem): Implement Vulkan texture creation from file + } + + VulkanTexture2D::~VulkanTexture2D() + { + // TODO(Hachem): Implement Vulkan texture cleanup + } + + void VulkanTexture2D::SetData(void* data, uint32_t size) + { + // TODO(Hachem): Implement Vulkan texture data setting + } + + void VulkanTexture2D::Bind(uint32_t slot) const + { + // TODO(Hachem): Implement Vulkan texture binding + } +}; -- cgit v1.3