Merge pull request #1188 from vlj/d3d12

d3d12: Fix wrong index being used for sampler descriptor heap
This commit is contained in:
Raul Tambre 2015-08-17 12:26:44 +03:00
commit 6124783180

View file

@ -641,7 +641,7 @@ void D3D12GSRender::Draw()
getCurrentResourceStorage().m_currentCommandList->SetDescriptorHeaps(1, getCurrentResourceStorage().m_samplerDescriptorHeap[getCurrentResourceStorage().m_samplerDescriptorHeapIndex].GetAddressOf());
getCurrentResourceStorage().m_currentCommandList->SetGraphicsRootDescriptorTable(3,
getGPUDescriptorHandle(getCurrentResourceStorage().m_samplerDescriptorHeap[getCurrentResourceStorage().m_samplerDescriptorHeapIndex].Get(),
getCurrentResourceStorage().m_currentTextureIndex * g_descriptorStrideSamplers)
getCurrentResourceStorage().m_currentSamplerIndex * g_descriptorStrideSamplers)
);
getCurrentResourceStorage().m_currentTextureIndex += usedTexture;