mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 21:10:42 +00:00
Sampler descriptor is larger than UAV descriptor - use it for GetSize
This commit is contained in:
@@ -262,7 +262,7 @@ uint32_t D3D12ResourceManager::GetSize_InitialState(ResourceId id, ID3D12DeviceC
|
||||
if(record->type == Resource_DescriptorHeap)
|
||||
{
|
||||
// the initial contents are just the descriptors. Estimate the serialise size here
|
||||
const uint32_t descriptorSerSize = 40 + sizeof(D3D12_UNORDERED_ACCESS_VIEW_DESC);
|
||||
const uint32_t descriptorSerSize = 40 + sizeof(D3D12_SAMPLER_DESC);
|
||||
|
||||
return initContents.num * descriptorSerSize;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user