Skip to content

Commit

Permalink
Skip empty descriptor ranges in D3D12
Browse files Browse the repository at this point in the history
  • Loading branch information
crosire committed Apr 28, 2024
1 parent f3cfd26 commit 1b703f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/d3d12/d3d12_impl_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1325,6 +1325,9 @@ bool reshade::d3d12::device_impl::create_pipeline_layout(uint32_t param_count, c
{
assert(range->array_size <= 1);

if (range->count == 0)
continue;

if (with_static_samplers && range->type == api::descriptor_type::sampler && range->static_samplers != nullptr)
{
for (uint32_t j = 0; j < range->count; ++j)
Expand Down

0 comments on commit 1b703f3

Please sign in to comment.