MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ update_descriptor_storage_image()

void MayaFlux::Portal::Graphics::ShaderFoundry::update_descriptor_storage_image ( DescriptorSetID  descriptor_set_id,
uint32_t  binding,
vk::ImageView  image_view,
vk::ImageLayout  layout = vk::ImageLayout::eGeneral 
)

Update descriptor set with storage image binding.

Parameters
descriptor_set_idID of descriptor set to update
bindingBinding index within the descriptor set
image_viewVulkan image view to bind
layoutImage layout (default: eGeneral)

Definition at line 741 of file ShaderFoundry.cpp.

746{
747 auto it = m_descriptor_sets.find(descriptor_set_id);
748 if (it == m_descriptor_sets.end()) {
749 return;
750 }
751
752 vk::DescriptorImageInfo image_info;
753 image_info.imageView = image_view;
754 image_info.imageLayout = layout;
755
756 vk::WriteDescriptorSet write;
757 write.dstSet = it->second.descriptor_set;
758 write.dstBinding = binding;
759 write.dstArrayElement = 0;
760 write.descriptorCount = 1;
761 write.descriptorType = vk::DescriptorType::eStorageImage;
762 write.pImageInfo = &image_info;
763
764 get_device().updateDescriptorSets(1, &write, 0, nullptr);
765}
vk::Device get_device() const
Get logical device handle.
std::unordered_map< DescriptorSetID, DescriptorSetState > m_descriptor_sets

References get_device(), and m_descriptor_sets.

+ Here is the call graph for this function: