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 159 of file MeshProcessor.cpp.

160{
161 const auto* ib = std::get_if<std::vector<uint32_t>>(
162 &buf->m_mesh_data.index_variant);
163 if (!ib || ib->empty() || !m_gpu_index_buffer) {
164 return;
165 }
166
168 ib->data(),
169 ib->size() * sizeof(uint32_t),
172}
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: