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

◆ upload_indices()

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

Definition at line 175 of file MeshProcessor.cpp.

176{
177 const auto* ib = std::get_if<std::vector<uint32_t>>(
178 &buf->m_mesh_data.index_variant);
179 if (!ib || ib->empty() || !m_gpu_index_buffer) {
180 return;
181 }
182
184 ib->data(),
185 ib->size() * sizeof(uint32_t),
188}
std::shared_ptr< VKBuffer > m_index_staging
std::shared_ptr< VKBuffer > m_gpu_index_buffer
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_gpu_index_buffer, m_index_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: