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

[d3d11] Ignoring unknown semantics in input layouts

This commit is contained in:
Philip Rebohle 2017-12-30 19:11:20 +01:00
parent b7ce9660c3
commit 588ceba1d1

View File

@ -308,6 +308,9 @@ namespace dxvk {
return E_INVALIDARG; return E_INVALIDARG;
} }
if (viewInfo.numLayers == 0 || viewInfo.numLayers == 0xFFFFFFFF)
viewInfo.numLevels = textureInfo.image->info().mipLevels - viewInfo.minLevel;
if (ppSRView == nullptr) if (ppSRView == nullptr)
return S_FALSE; return S_FALSE;
@ -608,7 +611,7 @@ namespace dxvk {
"D3D11Device::CreateInputLayout: No such semantic: ", "D3D11Device::CreateInputLayout: No such semantic: ",
pInputElementDescs[i].SemanticName, pInputElementDescs[i].SemanticName,
pInputElementDescs[i].SemanticIndex)); pInputElementDescs[i].SemanticIndex));
return E_INVALIDARG; continue;
} }
// Create vertex input attribute description // Create vertex input attribute description