Vulkan: Push constants #104880
|
@ -137,6 +137,10 @@ void VKDescriptorSet::update(VkDevice vk_device)
|
|||
descriptor_writes.append(write_descriptor);
|
||||
}
|
||||
|
||||
BLI_assert_msg(image_infos.size() + buffer_infos.size() == descriptor_writes.size(),
|
||||
Jeroen-Bakker marked this conversation as resolved
|
||||
"Not all changes have been converted to a write descriptor. Check "
|
||||
"`Binding::is_buffer` and `Binding::is_image`.");
|
||||
|
||||
vkUpdateDescriptorSets(
|
||||
vk_device, descriptor_writes.size(), descriptor_writes.data(), 0, nullptr);
|
||||
|
||||
|
|
|
@ -90,7 +90,7 @@ class VKDescriptorSet : NonCopyable {
|
|||
|
||||
bool is_buffer() const
|
||||
{
|
||||
return ELEM(type, VK_DESCRIPTOR_TYPE_STORAGE_BUFFER);
|
||||
return ELEM(type, VK_DESCRIPTOR_TYPE_STORAGE_BUFFER, VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER);
|
||||
}
|
||||
|
||||
bool is_image() const
|
||||
|
|
Loading…
Reference in New Issue
Apply to main directly.