Skip to content

Commit 2ea71bc

Browse files
debug(shader): add diagnostic logging to SetBindlessInput to trace crash
1 parent 0016fee commit 2ea71bc

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

ZEngine/ZEngine/Rendering/Renderers/RenderPasses/RenderPass.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,13 @@ namespace ZEngine::Rendering::Renderers::RenderPasses
280280
const auto& descriptor_set_map = shader->DescriptorSetMap;
281281
auto frame_count = m_device->SwapchainPtr->BufferredFrameCount;
282282

283+
ZENGINE_CORE_INFO("SetBindlessInput: key={} Set={} Binding={} frame_count={} map_has_set={}", key_name.data(), binding_spec.Set, binding_spec.Binding, frame_count, descriptor_set_map.find(binding_spec.Set) != nullptr)
284+
285+
if (descriptor_set_map.find(binding_spec.Set) != nullptr)
286+
{
287+
ZENGINE_CORE_INFO("SetBindlessInput: DescriptorSetMap[{}].size()={}", binding_spec.Set, descriptor_set_map.at(binding_spec.Set).size())
288+
}
289+
283290
for (unsigned i = 0; i < frame_count; ++i)
284291
{
285292
auto set = descriptor_set_map.at(binding_spec.Set)[i];

0 commit comments

Comments
 (0)