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

◆ initialize_descriptors()

void MayaFlux::Buffers::ShaderProcessor::initialize_descriptors ( )
private

Definition at line 453 of file ShaderProcessor.cpp.

454{
457 "Cannot allocate descriptor sets without pipeline");
458 return;
459 }
460
462
463 auto& compute_press = Portal::Graphics::get_compute_press();
464
465 m_descriptor_set_ids = compute_press.allocate_pipeline_descriptors(m_pipeline_id);
466
467 if (m_descriptor_set_ids.empty()) {
469 "Failed to allocate descriptor sets");
470 return;
471 }
472
475
477 "Descriptor sets initialized: {} sets", m_descriptor_set_ids.size());
478}
#define MF_ERROR(comp, ctx,...)
#define MF_DEBUG(comp, ctx,...)
virtual void on_descriptors_created()
Called after descriptor sets are created.
Portal::Graphics::ComputePipelineID m_pipeline_id
virtual void on_before_descriptors_create()
Called before descriptor sets are created.
std::vector< Portal::Graphics::DescriptorSetID > m_descriptor_set_ids
@ BufferProcessing
Buffer processing (Buffers::BufferManager, processing chains)
@ Buffers
Buffers, Managers, processors and processing chains.
constexpr ComputePipelineID INVALID_COMPUTE_PIPELINE
MAYAFLUX_API ComputePress & get_compute_press()

References MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, MayaFlux::Portal::Graphics::get_compute_press(), MayaFlux::Portal::Graphics::INVALID_COMPUTE_PIPELINE, m_descriptor_set_ids, m_pipeline_id, MF_DEBUG, MF_ERROR, on_before_descriptors_create(), on_descriptors_created(), and update_descriptors().

Referenced by processing_function().

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