1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-07 16:54:14 +01:00

[d3d11] Improve error logging when texture creation fails

This commit is contained in:
Philip Rebohle 2019-01-08 10:34:48 +01:00
parent 9890b87225
commit 214891ffc6
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -143,14 +143,15 @@ namespace dxvk {
if (!CheckImageSupport(&imageInfo, imageInfo.tiling)) { if (!CheckImageSupport(&imageInfo, imageInfo.tiling)) {
throw DxvkError(str::format( throw DxvkError(str::format(
"D3D11: Cannot create texture:", "D3D11: Cannot create texture:",
"\n Format: ", imageInfo.format, "\n Format: ", m_desc.Format,
"\n Extent: ", imageInfo.extent.width, "\n Extent: ", m_desc.Width,
"x", imageInfo.extent.height, "x", m_desc.Height,
"x", imageInfo.extent.depth, "x", m_desc.Depth,
"\n Samples: ", imageInfo.sampleCount, "\n Samples: ", m_desc.SampleDesc.Count,
"\n Layers: ", imageInfo.numLayers, "\n Layers: ", m_desc.ArraySize,
"\n Levels: ", imageInfo.mipLevels, "\n Levels: ", m_desc.MipLevels,
"\n Usage: ", std::hex, imageInfo.usage)); "\n Usage: ", std::hex, m_desc.BindFlags,
"\n Flags: ", std::hex, m_desc.MiscFlags));
} }
// If necessary, create the mapped linear buffer // If necessary, create the mapped linear buffer