Update libktx to 4.4.0
- Use UASTC textures instead of ASTC, transcode to ASTC or BC7 at load time - Add cmake helpers to generate assets, optimize controller models - Textures are resized to 512x512 and compressed in UASTC - Always use libktx
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "image_loader.h"
|
||||
#include "render/growable_descriptor_pool.h"
|
||||
#include "utils/thread_safe.h"
|
||||
#include "wivrn_config.h"
|
||||
@@ -41,7 +42,7 @@ class imgui_textures
|
||||
struct texture_data
|
||||
{
|
||||
vk::raii::Sampler sampler;
|
||||
std::shared_ptr<vk::raii::ImageView> image_view;
|
||||
loaded_image image;
|
||||
std::shared_ptr<vk::raii::DescriptorSet> descriptor_set;
|
||||
};
|
||||
|
||||
@@ -64,8 +65,8 @@ public:
|
||||
thread_safe<vk::raii::Queue> & queue);
|
||||
ImTextureID load_texture(const std::string & filename, vk::raii::Sampler && sampler);
|
||||
ImTextureID load_texture(const std::string & filename);
|
||||
ImTextureID load_texture(const std::span<const std::byte> & bytes, vk::raii::Sampler && sampler);
|
||||
ImTextureID load_texture(const std::span<const std::byte> & bytes);
|
||||
ImTextureID load_texture(const std::span<const std::byte> & bytes, vk::raii::Sampler && sampler, const std::string & name = "");
|
||||
ImTextureID load_texture(const std::span<const std::byte> & bytes, const std::string & name = "");
|
||||
void free_texture(ImTextureID);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user