diff --git a/src/texture.cpp b/src/texture.cpp deleted file mode 100644 index 3575a76..0000000 --- a/src/texture.cpp +++ /dev/null @@ -1,13 +0,0 @@ -#include "texture.h" - -Texture::Texture(const TextureContext &ctx) { - // Check if format is supported by system - VkFormatProperties properties; - vkGetPhysicalDeviceFormatProperties(ctx.physicalDevice, ctx.texFormat, &properties); - - if (!(properties.optimalTilingFeatures & VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT)) { - throw std::runtime_error("Requested image format does not support storage operations!"); - } - - -} \ No newline at end of file diff --git a/src/texture.h b/src/texture.h deleted file mode 100644 index f5fec6a..0000000 --- a/src/texture.h +++ /dev/null @@ -1,26 +0,0 @@ -#include - -#include - -class Texture { -public: - struct TextureContext { - VkPhysicalDevice physicalDevice; - VkFormat texFormat; - uint32_t width; - uint32_t height; - }; - - Texture(const TextureContext &ctx); - - inline uint32_t getHeight() const { return height; } - - inline uint32_t getWidth() const { return width; } - -private: - VkImage image; - VkImageView imageView; - - uint32_t width; - uint32_t height; -};