|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
Holds the plumbing for one graphics output registered from a Nexus object. More...
#include <Sinks.hpp>
Collaboration diagram for MayaFlux::Nexus::RenderSink:Public Attributes | |
| std::shared_ptr< Buffers::VKBuffer > | buf |
| RenderFn | fn |
| std::string | fn_name |
| std::shared_ptr< Buffers::RenderProcessor > | renderer |
| std::shared_ptr< Core::Window > | window |
| std::shared_ptr< Buffers::GeometryWriteProcessor > | writer |
Holds the plumbing for one graphics output registered from a Nexus object.
Created by add_render_sink(). Owns the VKBuffer, GeometryWriteProcessor, and RenderProcessor. The buffer is registered with the supplied BufferManager on construction and unregistered on destruction via remove_render_sink().
Default rendering uses POINT_LIST topology with point.vert.spv / point.frag.spv. The object's spatial position is written as a single point when dispatch_render_sinks() fires and no fn is set.
If fn is set, dispatch_render_sinks() calls it and forwards the result to the writer. If fn is empty, data arrives only via push_geometry().