mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Correct D3D11 estimate of initial contents for multisampled resources
This commit is contained in:
@@ -335,6 +335,11 @@ uint32_t WrappedID3D11Device::GetSize_InitialState(ResourceId id, ID3D11DeviceCh
|
||||
|
||||
uint32_t NumSubresources = desc.MipLevels * desc.ArraySize;
|
||||
|
||||
bool multisampled = desc.SampleDesc.Count > 1 || desc.SampleDesc.Quality > 0;
|
||||
|
||||
if(multisampled)
|
||||
NumSubresources *= desc.SampleDesc.Count;
|
||||
|
||||
bool OmittedContents = ShouldOmitInitState(desc, tex->GetResourceID()) &&
|
||||
!RenderDoc::Inst().GetCaptureOptions().SaveAllInitials;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user