Don't fetch GPU descriptor address for non-shader-visible heaps

* Silences a D3D12 debug warning
This commit is contained in:
baldurk
2021-09-17 14:29:23 +01:00
parent 1b42dcc05f
commit 6535e3b20c
+2 -1
View File
@@ -355,7 +355,8 @@ WrappedID3D12DescriptorHeap::WrappedID3D12DescriptorHeap(ID3D12DescriptorHeap *r
: WrappedDeviceChild12(real, device)
{
realCPUBase = real->GetCPUDescriptorHandleForHeapStart();
realGPUBase = real->GetGPUDescriptorHandleForHeapStart();
if(desc.Flags & D3D12_DESCRIPTOR_HEAP_FLAG_SHADER_VISIBLE)
realGPUBase = real->GetGPUDescriptorHandleForHeapStart();
increment = device->GetUnwrappedDescriptorIncrement(desc.Type);
numDescriptors = UnpatchedNumDescriptors;