MayaFlux 0.4.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 178 of file FormaBindingsProcessor.cpp.

180{
183 : VKBuffer::Usage::COMPUTE;
184
185 auto buf = std::make_shared<VKBuffer>(
186 sizeof(float),
187 usage,
189
191 .get_service<Registry::Service::BufferService>();
192
193 if (!svc) {
194 error<std::runtime_error>(
197 std::source_location::current(),
198 "FormaBindingsProcessor: no BufferService available");
199 }
200
201 svc->initialize_buffer(buf);
202 return buf;
203}
@ UNIFORM
Uniform buffer (host-visible)
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::Buffers::VKBuffer::COMPUTE, MayaFlux::Registry::BackendRegistry::get_service(), MayaFlux::Registry::BackendRegistry::instance(), MayaFlux::Buffers::VKBuffer::UNIFORM, MayaFlux::Portal::Graphics::UNIFORM, and MayaFlux::Kakshya::UNKNOWN.

Referenced by bind_descriptor().

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