Add debug preview to selected resource in GPU Memory tab

This commit is contained in:
2026-06-10 15:13:59 +02:00
parent 7a0ba92808
commit 080de40eac
4 changed files with 338 additions and 46 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ void GPUContext::OnPresent()
void GPUContext::BindSR(int32 slot, GPUTexture* t)
{
ASSERT_LOW_LAYER(t == nullptr || t->ResidentMipLevels() == 0 || t->IsShaderResource());
CHECK_DEBUG(t == nullptr || t->ResidentMipLevels() == 0 || t->IsShaderResource());
BindSR(slot, GET_TEXTURE_VIEW_SAFE(t));
}