Add support for compressed textures

This commit is contained in:
Guillaume Meunier
2024-02-04 11:23:31 +01:00
parent 4fc51964c3
commit dcde2e358e
6 changed files with 177 additions and 108 deletions
+5 -2
View File
@@ -30,10 +30,11 @@
#include <glm/vec4.hpp>
#include <memory>
#include <string>
#include <utils/magic_hash.h>
#include <variant>
#include <vector>
#include <vk/allocation.h>
#include <vulkan/vulkan_raii.hpp>
#include <ktxvulkan.h>
struct sampler_info
{
@@ -59,8 +60,10 @@ struct scene_data
{
struct image
{
image_allocation image_;
std::variant<image_allocation, std::pair<VkDevice, ktxVulkanTexture>> image_;
vk::raii::ImageView image_view = nullptr;
~image();
};
struct texture