Skip to content

Commit

Permalink
update main.cpp, remove frames in flight from UI's constructor args
Browse files Browse the repository at this point in the history
  • Loading branch information
AnastaZIuk committed Sep 4, 2024
1 parent f9cd055 commit eb1efe0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 61_UI/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class UISampleApp final : public examples::SimpleWindowedApplication

auto descriptorSetLayout = m_device->createDescriptorSetLayout(bindings);

pass.ui.manager = core::make_smart_refctd_ptr<nbl::ext::imgui::UI>(smart_refctd_ptr(m_device), smart_refctd_ptr(descriptorSetLayout), (int)m_maxFramesInFlight, renderpass, nullptr, smart_refctd_ptr(m_window));
pass.ui.manager = core::make_smart_refctd_ptr<nbl::ext::imgui::UI>(smart_refctd_ptr(m_device), smart_refctd_ptr(descriptorSetLayout), renderpass, nullptr, smart_refctd_ptr(m_window));

IDescriptorPool::SCreateInfo descriptorPoolInfo = {};
descriptorPoolInfo.maxDescriptorCount[static_cast<uint32_t>(asset::IDescriptor::E_TYPE::ET_SAMPLER)] = 69u;
Expand Down Expand Up @@ -553,7 +553,7 @@ class UISampleApp final : public examples::SimpleWindowedApplication
.renderArea = currentRenderArea
};
cb->beginRenderPass(info, IGPUCommandBuffer::SUBPASS_CONTENTS::INLINE);
pass.ui.manager->render(cb, pass.ui.descriptorSet.get(), resourceIx);
pass.ui.manager->render(cb, pass.ui.descriptorSet.get());
cb->endRenderPass();
}
cb->end();
Expand Down

0 comments on commit eb1efe0

Please sign in to comment.