Skip to content

Commit c7e42ed

Browse files
author
devsh
committed
post merge examples_tests submodule pointer update
and fix my silly bug
1 parent f4bf625 commit c7e42ed

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

examples_tests

include/nbl/asset/IDescriptorSetLayout.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,9 +466,10 @@ class IDescriptorSetLayout : public IDescriptorSetLayoutBase
466466
{
467467
if ((b.type == IDescriptor::E_TYPE::ET_SAMPLER or b.type == IDescriptor::E_TYPE::ET_COMBINED_IMAGE_SAMPLER) and b.immutableSamplers)
468468
{
469-
const auto localOffset = m_immutableSamplerRedirect.getStorageOffset(typename CBindingRedirect::binding_number_t(b.binding)).data;
469+
const auto localOffset = m_immutableSamplerRedirect.getStorageOffset(typename CBindingRedirect::binding_number_t(b.binding));
470+
assert(bool(localOffset));
470471

471-
auto* dst = m_immutableSamplers->begin() + localOffset;
472+
auto* dst = m_immutableSamplers->begin() + localOffset.data;
472473
std::copy_n(b.immutableSamplers, b.count, dst);
473474
}
474475
}

0 commit comments

Comments
 (0)