MayaFlux 0.5.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 185 of file FormaBindingsProcessor.cpp.

187{
189 ? VKBuffer::Usage::UNIFORM
190 : VKBuffer::Usage::COMPUTE;
191
192 auto buf = std::make_shared<VKBuffer>(
193 sizeof(float),
194 usage,
196
198 .get_service<Registry::Service::BufferService>();
199
200 if (!svc) {
201 error<std::runtime_error>(
204 std::source_location::current(),
205 "FormaBindingsProcessor: no BufferService available");
206 }
207
208 svc->initialize_buffer(buf);
209 return buf;
210}
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, and MayaFlux::Kakshya::UNKNOWN.

Referenced by bind_descriptor().

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