aboutsummaryrefslogtreecommitdiff
path: root/src/Common_DX12.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Common_DX12.h')
-rw-r--r--src/Common_DX12.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Common_DX12.h b/src/Common_DX12.h
index 17dbe83..945d3ce 100644
--- a/src/Common_DX12.h
+++ b/src/Common_DX12.h
@@ -68,7 +68,7 @@ struct GFSDK_D3D12_DescriptorHeap
void InitDescriptorHeap(ID3D12Device* pDevice, D3D12_DESCRIPTOR_HEAP_TYPE HeapType, const GFSDK_SSAO_DescriptorHeapRange_D3D12* pHeapInfo, bool bShaderVisible)
{
- NumDescriptors = pHeapInfo->NumDescriptors;
+ NumDescriptors = pHeapInfo->pDescHeap->GetDesc().NumDescriptors;
pDescHeap = pHeapInfo->pDescHeap;
BaseIndex = pHeapInfo->BaseIndex;