From 89e2fc1dd30d5a0ed61f9221cc7bb96961f85e6e Mon Sep 17 00:00:00 2001 From: iwubcode Date: Sun, 13 Aug 2023 17:21:16 -0500 Subject: [PATCH] VideoBackends: update SRVDescriptorTable size in DX12 to use pixel sampler constant --- Source/Core/VideoBackends/D3D12/D3D12Gfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/VideoBackends/D3D12/D3D12Gfx.cpp b/Source/Core/VideoBackends/D3D12/D3D12Gfx.cpp index 3f6035feda..84bac629ac 100644 --- a/Source/Core/VideoBackends/D3D12/D3D12Gfx.cpp +++ b/Source/Core/VideoBackends/D3D12/D3D12Gfx.cpp @@ -654,7 +654,7 @@ bool Gfx::UpdateSRVDescriptorTable() static constexpr std::array src_sizes = { 1, 1, 1, 1, 1, 1, 1, 1}; DescriptorHandle dst_base_handle; - const UINT dst_handle_sizes = 8; + const UINT dst_handle_sizes = VideoCommon::MAX_PIXEL_SHADER_SAMPLERS; if (!g_dx_context->GetDescriptorAllocator()->Allocate(VideoCommon::MAX_PIXEL_SHADER_SAMPLERS, &dst_base_handle)) return false;