MayaFlux 1.0.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 848 of file ShaderFoundry.cpp.

853{
854 auto it = m_descriptor_sets.find(descriptor_set_id);
855 if (it == m_descriptor_sets.end()) {
856 return;
857 }
858
859 vk::DescriptorImageInfo image_info;
860 image_info.imageView = image_view;
861 image_info.imageLayout = layout;
862
863 vk::WriteDescriptorSet write;
864 write.dstSet = it->second.descriptor_set;
865 write.dstBinding = binding;
866 write.dstArrayElement = 0;
867 write.descriptorCount = 1;
868 write.descriptorType = vk::DescriptorType::eStorageImage;
869 write.pImageInfo = &image_info;
870
871 get_device().updateDescriptorSets(1, &write, 0, nullptr);
872}
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: