Improve macOS Retina UI clarity and bundle HD assets

This commit is contained in:
shen
2026-09-30 16:13:31 -07:00
parent 905f23f135
commit d1f8d3dddd
26 changed files with 505 additions and 134 deletions
+6 -2
View File
@@ -46,6 +46,8 @@ class VulkanWindow {
VkImageView view = VK_NULL_HANDLE;
VkDescriptorSet descriptor = VK_NULL_HANDLE;
VkDescriptorSet ui_descriptor = VK_NULL_HANDLE;
VkDescriptorSet ui_point_descriptor = VK_NULL_HANDLE;
std::uint32_t width = 0, height = 0;
std::uint64_t last_used_frame = 0;
std::uint64_t last_decode_attempt_frame = 0;
};
@@ -326,7 +328,7 @@ private:
VkSampler sampler0 = VK_NULL_HANDLE,
VkSampler sampler1 = VK_NULL_HANDLE);
VkDescriptorSet allocate_ui_texture_descriptor_set(VkImageView view0, VkImageView view1);
VkDescriptorSet allocate_ui_texture_descriptor_set(VkImageView view0, VkImageView view1, bool point = false);
GpuTexture& get_gpu_texture(
const std::string& texture_name,
@@ -345,7 +347,8 @@ private:
VkDescriptorSet get_ui_texture_descriptor(
const std::string& texture0_name,
const std::string& mask_name,
const std::unordered_map<std::string, std::vector<std::uint8_t>>& capture_textures);
const std::unordered_map<std::string, std::vector<std::uint8_t>>& capture_textures,
bool point = false);
void upload_texture(
std::uint32_t width,
@@ -419,6 +422,7 @@ private:
VkSampler sampler_ = VK_NULL_HANDLE;
VkSampler clamp_sampler_ = VK_NULL_HANDLE;
VkSampler ui_sampler_ = VK_NULL_HANDLE;
VkSampler ui_point_sampler_ = VK_NULL_HANDLE;
std::unordered_map<std::uint64_t, VkSampler> state_samplers_;
VkDescriptorSetLayout descriptor_layout_ = VK_NULL_HANDLE;
VkDescriptorSetLayout bone_descriptor_layout_ = VK_NULL_HANDLE;