MayaFlux 0.4.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 661 of file ShaderFoundry.cpp.

666{
667 auto it = m_descriptor_sets.find(descriptor_set_id);
668 if (it == m_descriptor_sets.end()) {
669 return;
670 }
671
672 vk::DescriptorImageInfo image_info;
673 image_info.imageView = image_view;
674 image_info.imageLayout = layout;
675
676 vk::WriteDescriptorSet write;
677 write.dstSet = it->second.descriptor_set;
678 write.dstBinding = binding;
679 write.dstArrayElement = 0;
680 write.descriptorCount = 1;
681 write.descriptorType = vk::DescriptorType::eStorageImage;
682 write.pImageInfo = &image_info;
683
684 get_device().updateDescriptorSets(1, &write, 0, nullptr);
685}
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: