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

◆ refit()

void MayaFlux::Nexus::Mantle::refit ( )

Read the buffer's geometry again and place it to match.

For a deforming mesh. Blocks for a ComputeMeshBuffer, so call it off the graphics thread. The previous geometry is kept if nothing can be read.

Definition at line 102 of file Mantle.cpp.

103{
104 if (!m_look.buf) {
105 return;
106 }
107
108 if (const auto local = read_bounds(m_look.buf)) {
109 m_local = local;
110 refresh();
111 } else {
113 "Mantle::refit kept the previous geometry: no geometry could be read from the buffer");
114 }
115}
#define MF_WARN(comp, ctx,...)
std::optional< Kinesis::AABB3D > m_local
Definition Mantle.hpp:77
@ Runtime
General runtime operations (default fallback)
@ Nexus
Spatial indexing and scheduling for user-defined behaviour.
std::optional< Kinesis::AABB3D > read_bounds(const std::shared_ptr< Buffers::VKBuffer > &buf, const std::optional< uint32_t > &collection)
Bounds of a buffer's geometry in its own stored coordinates.
Definition Survey.cpp:256
std::shared_ptr< Buffers::VKBuffer > buf

References MayaFlux::Nexus::Attachment::buf, m_local, m_look, MF_WARN, MayaFlux::Journal::Nexus, MayaFlux::Nexus::read_bounds(), refresh(), and MayaFlux::Journal::Runtime.

+ Here is the call graph for this function: