mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 05:20:45 +00:00
Fix error in D3D11DebugManager::CopyArrayToTex2DMS
* There was an error in case of depth copy. Before the first draw only registers t1-t9 are cleared, but shader also expects 2D Array SRVs on t11
This commit is contained in:
committed by
Baldur Karlsson
parent
5291a9c19d
commit
e8e3972953
@@ -374,10 +374,10 @@ void D3D11DebugManager::CopyArrayToTex2DMS(ID3D11Texture2D *destMS, ID3D11Textur
|
||||
return;
|
||||
}
|
||||
|
||||
ID3D11ShaderResourceView *srvs[8] = {NULL};
|
||||
ID3D11ShaderResourceView *srvs[10] = {NULL};
|
||||
srvs[0] = srvArray;
|
||||
|
||||
m_pImmediateContext->PSSetShaderResources(1, 8, srvs);
|
||||
m_pImmediateContext->PSSetShaderResources(1, 10, srvs);
|
||||
|
||||
// loop over every array slice in MS texture
|
||||
for(UINT slice = 0; slice < descMS.ArraySize; slice++)
|
||||
|
||||
Reference in New Issue
Block a user