|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| bool MayaFlux::Kriya::detail::ensure_rendering | ( | const std::shared_ptr< Buffers::VKBuffer > & | buffer, |
| const Portal::Graphics::RenderConfig & | config | ||
| ) |
Make a buffer draw to the window in a render config, unless it already does.
A buffer that already has a render processor is left as it is; a different target window than the one requested is reported. Otherwise the config is applied through the buffer's own setup_rendering, chosen by buffer type: the texture, geometry, mesh, network, grid and Forma families are covered. Any other buffer is reported and left untouched.
Definition at line 130 of file PipelineGraphicsData.cpp.
References buffer, MayaFlux::Journal::Configuration, MayaFlux::Journal::Kriya, MF_ERROR, MF_WARN, and MayaFlux::Portal::Graphics::RenderConfig::target_window.
Referenced by MayaFlux::Kriya::BufferOperation::capture_camera(), MayaFlux::Kriya::BufferOperation::capture_camera_from(), MayaFlux::Kriya::BufferOperation::capture_file(), MayaFlux::Kriya::BufferOperation::capture_file_from(), MayaFlux::Kriya::BufferOperation::capture_from(), MayaFlux::Kriya::BufferOperation::capture_to_stream(), MayaFlux::Kriya::BufferOperation::file_to_stream(), and MayaFlux::Kriya::BufferPipeline::prepare_displays().
Here is the caller graph for this function: