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

◆ rebuild_owned_buffers()

void MayaFlux::Buffers::SDFMeshProcessor::rebuild_owned_buffers ( )
private

Definition at line 214 of file SDFMeshProcessor.cpp.

215{
217 .get_service<Registry::Service::BufferService>();
218
219 m_grid_buf = std::make_shared<VKBuffer>(
220 corner_count() * sizeof(float),
223 svc->initialize_buffer(m_grid_buf);
224
225 m_edge_buf = std::make_shared<VKBuffer>(
226 256 * sizeof(uint32_t),
229 svc->initialize_buffer(m_edge_buf);
230
231 m_tri_buf = std::make_shared<VKBuffer>(
232 static_cast<long>(256) * 16 * sizeof(int32_t),
235 svc->initialize_buffer(m_tri_buf);
236
237 m_counter_buf = std::make_shared<VKBuffer>(
238 sizeof(uint32_t),
241 svc->initialize_buffer(m_counter_buf);
242}
std::shared_ptr< VKBuffer > m_grid_buf
uint32_t corner_count() const noexcept
std::shared_ptr< VKBuffer > m_tri_buf
std::shared_ptr< VKBuffer > m_counter_buf
std::shared_ptr< VKBuffer > m_edge_buf
@ HOST_STORAGE
Host-visible storage buffer (eStorageBuffer + eHostVisible|eHostCoherent)
Interface * get_service()
Query for a backend service.
static BackendRegistry & instance()
Get the global registry instance.
@ UNKNOWN
Unknown or undefined modality.

References corner_count(), MayaFlux::Registry::BackendRegistry::get_service(), MayaFlux::Buffers::VKBuffer::HOST_STORAGE, MayaFlux::Registry::BackendRegistry::instance(), m_counter_buf, m_edge_buf, m_grid_buf, m_tri_buf, and MayaFlux::Kakshya::UNKNOWN.

Referenced by on_attach(), and set_resolution().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: