From cd897063e3517e32bd55ca64e976df37179d9739 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 14 Aug 2023 16:36:37 +0100 Subject: [PATCH] Make error message more explicit when proxy texture fails to create --- renderdoc/core/image_viewer.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/renderdoc/core/image_viewer.cpp b/renderdoc/core/image_viewer.cpp index 6c902bf9ff..90ecce1a68 100644 --- a/renderdoc/core/image_viewer.cpp +++ b/renderdoc/core/image_viewer.cpp @@ -919,7 +919,11 @@ void ImageViewer::RefreshFile() if(m_TextureID == ResourceId()) { SET_ERROR_RESULT(m_Error, ResultCode::APIInitFailed, - "Couldn't create proxy texture for image file"); + "Couldn't create proxy texture for image file. This is typically caused by " + "exceeding a graphics API limit for texture dimensions: %u x %u x %u " + "[%u array, %u mips] @ %s", + texDetails.width, texDetails.height, texDetails.depth, texDetails.arraysize, + texDetails.mips, texDetails.format.Name().c_str()); } m_TexDetails.resourceId = m_TextureID;