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

◆ make_descriptor_buffer()

std::shared_ptr< VKBuffer > MayaFlux::Buffers::FormaBindingsProcessor::make_descriptor_buffer ( Portal::Graphics::DescriptorRole  role)
staticprivate

Definition at line 334 of file FormaBindingsProcessor.cpp.

336{
338 ? VKBuffer::Usage::UNIFORM
339 : VKBuffer::Usage::COMPUTE;
340
341 auto buf = std::make_shared<VKBuffer>(
342 sizeof(float),
343 usage,
345
347 .get_service<Registry::Service::BufferService>();
348
349 if (!svc) {
350 error<std::runtime_error>(
353 std::source_location::current(),
354 "FormaBindingsProcessor: no BufferService available");
355 }
356
357 svc->initialize_buffer(buf);
358 return buf;
359}
uint16_t usage
Portal::Graphics::BufferUsageHint Usage
Definition VKBuffer.hpp:80
Interface * get_service()
Query for a backend service.
static BackendRegistry & instance()
Get the global registry instance.
@ BufferProcessing
Buffer processing (Buffers::BufferManager, processing chains)
@ Buffers
Buffers, Managers, processors and processing chains.
@ UNKNOWN
Unknown or undefined modality.
@ UNIFORM
Small, read-only, frequently updated (scalars, param structs)

References MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, MayaFlux::Registry::BackendRegistry::get_service(), MayaFlux::Registry::BackendRegistry::instance(), MayaFlux::Portal::Graphics::UNIFORM, MayaFlux::Kakshya::UNKNOWN, and usage.

Referenced by bind_descriptor().

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