Remove dead code, minor ge debugger change

This commit is contained in:
Henrik Rydgård committed 2025-06-06 13:50:35 +02:00
1 parent 96761197ca
commit 4c8aae50b2
3 files changed
+1 -7

No files matched your search

-2
View File
@@ -232,8 +232,6 @@ void TextureCacheVulkan::DeviceLost() {
void TextureCacheVulkan::DeviceRestore(Draw::DrawContext *draw) {
draw_ = draw;
_assert_(!allocator_);
VulkanContext *vulkan = (VulkanContext *)draw->GetNativeObject(Draw::NativeObject::CONTEXT);
_assert_(vulkan);
-4
View File
@@ -78,8 +78,6 @@ public:
void GetStats(char *ptr, size_t size);
VulkanDeviceAllocator *GetAllocator() { return allocator_; }
std::vector<std::string> DebugGetSamplerIDs() const;
std::string DebugGetSamplerString(const std::string &id, DebugShaderStringType stringType);
@@ -102,8 +100,6 @@ private:
void CompileScalingShader();
VulkanDeviceAllocator *allocator_ = nullptr;
VulkanComputeShaderManager computeShaderManager_;
SamplerCache samplerCache_;
+1 -1
View File
@@ -1288,7 +1288,7 @@ void ImGeDebuggerWindow::Draw(ImConfig &cfg, ImControl &control, GPUDebugInterfa
TextureCacheCommon *texcache = gpuDebug->GetTextureCacheCommon();
TexCacheEntry *tex = texcache ? texcache->SetTexture() : nullptr;
if (tex) {
ImGui::Text("Texture: ");
ImGui::Text("Texture: %08x", tex->addr);
texcache->ApplyTexture(false);
void *nativeView = texcache->GetNativeTextureView(tex, true);