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

◆ allocate_descriptor_set()

DescriptorSetID MayaFlux::Portal::Graphics::ShaderFoundry::allocate_descriptor_set ( vk::DescriptorSetLayout  layout)

Allocate descriptor set for a pipeline.

Parameters
pipeline_idWhich pipeline this is for
set_indexWhich descriptor set (0, 1, 2...)
Returns
Descriptor set ID

Definition at line 563 of file ShaderFoundry.cpp.

564{
566
567 DescriptorSetState& state = m_descriptor_sets[id];
568 state.descriptor_set = m_global_descriptor_manager->allocate_set(get_device(), layout);
569
570 return id;
571}
std::unordered_map< DescriptorSetID, DescriptorSetState > m_descriptor_sets
std::shared_ptr< Core::VKDescriptorManager > m_global_descriptor_manager
std::atomic< uint64_t > m_next_descriptor_set_id

References MayaFlux::Portal::Graphics::ShaderFoundry::DescriptorSetState::descriptor_set, get_device(), m_descriptor_sets, m_global_descriptor_manager, and m_next_descriptor_set_id.

Referenced by MayaFlux::Portal::Graphics::ComputePress::allocate_pipeline_descriptors(), and MayaFlux::Portal::Graphics::RenderFlow::allocate_pipeline_descriptors().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: