GFX: improve CreateTexture error by logging the texture GUID as well

Most textures in the retail product do not have debug names. A GUID however is still very useful to have. Log the GUID here too.
The CreateShaderResourceView call already logs the GUID along with the texture debug name.
This commit is contained in:
Kawe Mazidjatari 2025-01-15 13:57:40 +01:00
parent d3a2fd5238
commit aa405dc4c3

View File

@ -191,7 +191,8 @@ void CreateTextureResource(TextureAsset_s* textureHeader, INT_PTR imageData)
const HRESULT createTextureRes = D3D11Device()->CreateTexture2D(&textureDesc, subResData, &textureHeader->pInputTexture);
if (createTextureRes < S_OK)
Error(eDLL_T::RTECH, EXIT_FAILURE, "Couldn't create texture \"%s\": error code = %08x\n", textureHeader->debugName, createTextureRes);
Error(eDLL_T::RTECH, EXIT_FAILURE, "Couldn't create texture \"%s\" (%llX): error code = %08x\n",
textureHeader->debugName, textureHeader->assetGuid, createTextureRes);
D3D11_SHADER_RESOURCE_VIEW_DESC shaderResource{};
shaderResource.Format = dxgiFormat;