Merge pull request #12104 from iwubcode/descriptor_sample_size_constant_dx12

VideoBackends: update SRVDescriptorTable size in DX12 to use pixel sampler constant
This commit is contained in:
Admiral H. Curtiss 2023-08-15 23:15:19 +02:00 committed by GitHub
commit a10d768c63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -654,7 +654,7 @@ bool Gfx::UpdateSRVDescriptorTable()
static constexpr std::array<UINT, VideoCommon::MAX_PIXEL_SHADER_SAMPLERS> src_sizes = { static constexpr std::array<UINT, VideoCommon::MAX_PIXEL_SHADER_SAMPLERS> src_sizes = {
1, 1, 1, 1, 1, 1, 1, 1}; 1, 1, 1, 1, 1, 1, 1, 1};
DescriptorHandle dst_base_handle; 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, if (!g_dx_context->GetDescriptorAllocator()->Allocate(VideoCommon::MAX_PIXEL_SHADER_SAMPLERS,
&dst_base_handle)) &dst_base_handle))
return false; return false;