Closed drinkertea closed 3 years ago
Per Microsoft Docs: ID3D12Resource::GetHeapProperties:
This method only works on placed and committed resources, not on reserved resources. If the resource was created as reserved, E_INVALIDARG is returned. The pages could be mapped to none, one, or more heaps.
Fix of reserved resources extraction.
It is unable to call
GetHeapProperties
for reserved resources. But such info required only forREADBACK
resources optimization, capture code should not fail for reserved resources in this case.Fix of multisample resources extraction.
Invalid desc for resolved resource copied from the original multisample resource with
Alignment = D3D12_DEFAULT_MSAA_RESOURCE_PLACEMENT_ALIGNMENT
, which fails creation call.