Skip to content

Commit 1b703f3

Browse files
committed
Skip empty descriptor ranges in D3D12
1 parent f3cfd26 commit 1b703f3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/d3d12/d3d12_impl_device.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,6 +1325,9 @@ bool reshade::d3d12::device_impl::create_pipeline_layout(uint32_t param_count, c
13251325
{
13261326
assert(range->array_size <= 1);
13271327

1328+
if (range->count == 0)
1329+
continue;
1330+
13281331
if (with_static_samplers && range->type == api::descriptor_type::sampler && range->static_samplers != nullptr)
13291332
{
13301333
for (uint32_t j = 0; j < range->count; ++j)

0 commit comments

Comments
 (0)