summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-01-21 14:21:55 -0800
committerGitHub <noreply@github.com>2021-01-21 14:21:55 -0800
commitb52fcf9c85695ee90074df7f9a6eeba9f34ddaeb (patch)
tree407e894f1c7f89da873c7375f845d790957338d6
parentb762c75061dc93b24e21be78b84733dea71ea0b7 (diff)
Fix D3D12 DescriptorSet::setSampler bug (#1668)
-rw-r--r--tools/gfx/d3d12/render-d3d12.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gfx/d3d12/render-d3d12.cpp b/tools/gfx/d3d12/render-d3d12.cpp
index 9f208f83c..74dc19dd7 100644
--- a/tools/gfx/d3d12/render-d3d12.cpp
+++ b/tools/gfx/d3d12/render-d3d12.cpp
@@ -2854,7 +2854,7 @@ void D3D12Renderer::DescriptorSetImpl::setSampler(UInt range, UInt index, ISampl
#endif
auto arrayIndex = rangeInfo.arrayIndex + index;
- auto descriptorIndex = m_resourceTable + arrayIndex;
+ auto descriptorIndex = m_samplerTable + arrayIndex;
m_samplerObjects[arrayIndex] = samplerImpl;
dxDevice->CopyDescriptorsSimple(