ImDebugger: Add a basic texture browser

This commit is contained in:
Henrik Rydgård committed 2024-11-29 19:30:38 +01:00
1 parent 27f08d705b
commit e4adc112ff
21 files changed
+152 -18

No files matched your search

+2 -2
View File
@@ -867,7 +867,7 @@ std::string TextureCacheVulkan::DebugGetSamplerString(const std::string &id, Deb
return samplerCache_.DebugGetSamplerString(id, stringType);
}
void *TextureCacheVulkan::GetNativeTextureView(const TexCacheEntry *entry) {
VkImageView view = entry->vkTex->GetImageArrayView();
void *TextureCacheVulkan::GetNativeTextureView(const TexCacheEntry *entry, bool flat) const {
VkImageView view = flat ? entry->vkTex->GetImageView() : entry->vkTex->GetImageArrayView();
return (void *)view;
}