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

◆ create_descriptor_layout()

vk::DescriptorSetLayout MayaFlux::Core::BackendPipelineManager::create_descriptor_layout ( const std::shared_ptr< VKDescriptorManager > &  manager,
const std::vector< std::pair< uint32_t, uint32_t > > &  bindings 
)

Create a descriptor set layout.

Parameters
managerDescriptor manager to use for allocation
bindingsVector of pairs specifying binding index and descriptor type
Returns
Created vk::DescriptorSetLayout

Definition at line 69 of file BackendPipelineManager.cpp.

72{
73 DescriptorSetLayoutConfig vk_bindings {};
74 for (const auto& [binding, type] : bindings) {
75 vk_bindings.add_binding(binding, vk::DescriptorType(type), vk::ShaderStageFlagBits::eCompute);
76 }
77
78 return manager->create_layout(m_context.get_device(), vk_bindings);
79}
vk::Device get_device() const
Get logical device.
Definition VKContext.hpp:49

References MayaFlux::Core::DescriptorSetLayoutConfig::add_binding(), MayaFlux::Core::VKContext::get_device(), and m_context.

Referenced by setup_backend_service().

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