File tree Expand file tree Collapse file tree
ZEngine/ZEngine/Rendering/Shaders Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -319,20 +319,15 @@ namespace ZEngine::Rendering::Shaders
319319 binding_flags_collection.init (&LocalArena, layout_binding_collection.size (), layout_binding_collection.size ());
320320 for (uint32_t i = 0 ; i < layout_binding_collection.size (); ++i)
321321 {
322+ binding_flags_collection[i] = 0 ; // We zeroing as we iterate
322323 if (m_device->PhysicalDeviceSupportSampledImageBindless && ((layout_binding_collection[i].descriptorType == VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER ) || (layout_binding_collection[i].descriptorType == VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE )))
323324 {
324325 binding_flags_collection[i] = VK_DESCRIPTOR_BINDING_UPDATE_AFTER_BIND_BIT | VK_DESCRIPTOR_BINDING_PARTIALLY_BOUND_BIT | VK_DESCRIPTOR_BINDING_UPDATE_UNUSED_WHILE_PENDING_BIT ;
325- continue ;
326326 }
327327 else if (m_device->PhysicalDeviceSupportStorageBufferBindless && (layout_binding_collection[i].descriptorType == VK_DESCRIPTOR_TYPE_STORAGE_BUFFER ))
328328 {
329329 binding_flags_collection[i] = VK_DESCRIPTOR_BINDING_PARTIALLY_BOUND_BIT ;
330330 }
331- else
332- {
333- // Fallback for devices that don't support update-after-bind
334- binding_flags_collection[i] = 0 ;
335- }
336331 }
337332
338333 VkDescriptorSetLayoutBindingFlagsCreateInfo binding_flags_create_info = {};
You can’t perform that action at this time.
0 commit comments