mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
Fix error in D3D11DebugManager::CopyTex2DMSToArray
* There was an error in case of depth copy. Before the first draw only first 8 registers are cleared, but shader also expects 2D MS SRVs on t11-t15
This commit is contained in:
committed by
Baldur Karlsson
parent
9c8018ba18
commit
5291a9c19d
@@ -702,7 +702,7 @@ void D3D11DebugManager::CopyTex2DMSToArray(ID3D11Texture2D *destArray, ID3D11Tex
|
||||
return;
|
||||
}
|
||||
|
||||
ID3D11ShaderResourceView *srvs[8] = {NULL};
|
||||
ID3D11ShaderResourceView *srvs[16] = {NULL};
|
||||
|
||||
int srvIndex = 0;
|
||||
|
||||
@@ -712,7 +712,7 @@ void D3D11DebugManager::CopyTex2DMSToArray(ID3D11Texture2D *destArray, ID3D11Tex
|
||||
|
||||
srvs[srvIndex] = srvMS;
|
||||
|
||||
ctx->PSSetShaderResources(0, 8, srvs);
|
||||
ctx->PSSetShaderResources(0, 16, srvs);
|
||||
|
||||
// loop over every array slice in MS texture
|
||||
for(UINT slice = 0; slice < descMS.ArraySize; slice++)
|
||||
|
||||
Reference in New Issue
Block a user