From 214891ffc6bfb00cc9f4668b9b614ee7a5418632 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Tue, 8 Jan 2019 10:34:48 +0100 Subject: [PATCH] [d3d11] Improve error logging when texture creation fails --- src/d3d11/d3d11_texture.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/d3d11/d3d11_texture.cpp b/src/d3d11/d3d11_texture.cpp index b27d7b8c0..227793988 100644 --- a/src/d3d11/d3d11_texture.cpp +++ b/src/d3d11/d3d11_texture.cpp @@ -143,14 +143,15 @@ namespace dxvk { if (!CheckImageSupport(&imageInfo, imageInfo.tiling)) { throw DxvkError(str::format( "D3D11: Cannot create texture:", - "\n Format: ", imageInfo.format, - "\n Extent: ", imageInfo.extent.width, - "x", imageInfo.extent.height, - "x", imageInfo.extent.depth, - "\n Samples: ", imageInfo.sampleCount, - "\n Layers: ", imageInfo.numLayers, - "\n Levels: ", imageInfo.mipLevels, - "\n Usage: ", std::hex, imageInfo.usage)); + "\n Format: ", m_desc.Format, + "\n Extent: ", m_desc.Width, + "x", m_desc.Height, + "x", m_desc.Depth, + "\n Samples: ", m_desc.SampleDesc.Count, + "\n Layers: ", m_desc.ArraySize, + "\n Levels: ", m_desc.MipLevels, + "\n Usage: ", std::hex, m_desc.BindFlags, + "\n Flags: ", std::hex, m_desc.MiscFlags)); } // If necessary, create the mapped linear buffer