MayaFlux 0.1.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 630 of file ShaderFoundry.cpp.

635{
636 auto it = m_descriptor_sets.find(descriptor_set_id);
637 if (it == m_descriptor_sets.end()) {
638 return;
639 }
640
641 vk::DescriptorImageInfo image_info;
642 image_info.imageView = image_view;
643 image_info.imageLayout = layout;
644
645 vk::WriteDescriptorSet write;
646 write.dstSet = it->second.descriptor_set;
647 write.dstBinding = binding;
648 write.dstArrayElement = 0;
649 write.descriptorCount = 1;
650 write.descriptorType = vk::DescriptorType::eStorageImage;
651 write.pImageInfo = &image_info;
652
653 get_device().updateDescriptorSets(1, &write, 0, nullptr);
654}
std::unordered_map< DescriptorSetID, DescriptorSetState > m_descriptor_sets

References get_device(), and m_descriptor_sets.

+ Here is the call graph for this function: