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

◆ GraphicsProcessingFunction

using MayaFlux::Buffers::GraphicsProcessingFunction = typedef std::function<void(const std::shared_ptr<VKBuffer>&)>

Graphics processing function - receives correctly-typed VKBuffer.

User writes:

auto processor = [](const std::shared_ptr<VKBuffer>& buf) {
// buf is already VKBuffer, no casting
};
buffer_manager->attach_processor(processor, graphics_buffer, GRAPHICS_BACKEND);
buffer_manager->attach_processor_to_channel(processor, GRAPHICS_BACKEND, 0);
buffer_manager->attach_processor_to_token(processor, GRAPHICS_BACKEND);
@ GRAPHICS_BACKEND
Standard graphics processing backend configuration.

No casting needed - it's already VKBuffer!

Definition at line 44 of file BufferSpec.hpp.