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

◆ upload_vertices()

void MayaFlux::Buffers::MeshProcessor::upload_vertices ( const std::shared_ptr< MeshBuffer > &  buf)
private

Definition at line 144 of file MeshProcessor.cpp.

145{
146 const auto* vb = std::get_if<std::vector<uint8_t>>(
147 &buf->m_mesh_data.vertex_variant);
148 if (!vb || vb->empty()) {
149 return;
150 }
151
153 vb->data(),
154 vb->size(),
155 std::dynamic_pointer_cast<VKBuffer>(buf),
156 buf->is_host_visible() ? nullptr : m_vertex_staging);
157}
std::shared_ptr< VKBuffer > m_vertex_staging
void upload_resizing(const void *data, size_t size, const std::shared_ptr< VKBuffer > &target, const std::shared_ptr< VKBuffer > &staging, float growth_factor)
Upload size bytes to target, growing both buffers first if needed.

References m_vertex_staging, and MayaFlux::Buffers::upload_resizing().

Referenced by on_attach(), and processing_function().

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