Skip to content

Commit

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

m_pDevice2->GetResourceTiling(pTiledResource, pNumTilesForEntireResource, pPackedMipDesc,
pStandardTileShapeForNonPackedMips, pNumSubresourceTilings,
FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips);
m_pDevice2->GetResourceTiling(UnwrapResource(pTiledResource), pNumTilesForEntireResource,
pPackedMipDesc, pStandardTileShapeForNonPackedMips,
pNumSubresourceTilings, FirstSubresourceTilingToGet,
pSubresourceTilingsForNonPackedMips);
}

HRESULT WrappedID3D11Device::CheckMultisampleQualityLevels1(DXGI_FORMAT Format, UINT SampleCount,
Expand Down

0 comments on commit c91f7f9

Please sign in to comment.