D3D12HostDisplay: Fix software cursor rendering

This commit is contained in:
Connor McLaughlin
2022-12-27 22:16:44 +10:00
parent 1bb321c41f
commit af73d8ac24
2 changed files with 7 additions and 3 deletions

View File

@ -25,7 +25,8 @@ bool DescriptorHeapManager::Create(ID3D12Device* device, D3D12_DESCRIPTOR_HEAP_T
return false;
m_heap_base_cpu = m_descriptor_heap->GetCPUDescriptorHandleForHeapStart();
m_heap_base_gpu = m_descriptor_heap->GetGPUDescriptorHandleForHeapStart();
if (shader_visible)
m_heap_base_gpu = m_descriptor_heap->GetGPUDescriptorHandleForHeapStart();
m_num_descriptors = num_descriptors;
m_descriptor_increment_size = device->GetDescriptorHandleIncrementSize(type);