Skip to content

Commit

Permalink
Fix D3D11_2 GetResourceTiling return unsupport value
Browse files Browse the repository at this point in the history
  • Loading branch information
rayfalling committed Jan 4, 2024
1 parent 93eb160 commit c59a383
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion renderdoc/driver/d3d11/d3d11_device2_wrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ void WrappedID3D11Device::GetResourceTiling(
if(m_pDevice2 == NULL)
return;

m_pDevice2->GetResourceTiling(pTiledResource, pNumTilesForEntireResource, pPackedMipDesc,
WrappedID3D11Texture2D1* wrapped = static_cast<WrappedID3D11Texture2D1*>(pTiledResource);
m_pDevice2->GetResourceTiling(wrapped->GetReal(), pNumTilesForEntireResource, pPackedMipDesc,
pStandardTileShapeForNonPackedMips, pNumSubresourceTilings,
FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips);
}
Expand Down

0 comments on commit c59a383

Please sign in to comment.