MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Nexus::RenderSink Struct Reference

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::VKBufferbuf
 
RenderFn fn
 
std::string fn_name
 
std::shared_ptr< Buffers::RenderProcessorrenderer
 
std::shared_ptr< Core::Windowwindow
 
std::shared_ptr< Buffers::GeometryWriteProcessorwriter
 

Detailed Description

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().

Definition at line 65 of file Sinks.hpp.


The documentation for this struct was generated from the following file: