mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-10 17:05:08 +00:00
Merge pull request #1188 from vlj/d3d12
d3d12: Fix wrong index being used for sampler descriptor heap
This commit is contained in:
commit
6124783180
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue