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

◆ upload_initial_geometry()

void MayaFlux::Buffers::TextureProcessor::upload_initial_geometry ( )
private

Upload initial quad geometry based on default or custom vertices.

Definition at line 116 of file TextureProcessor.cpp.

117{
118 if (!m_texture_buffer || m_texture_buffer->m_vertex_bytes.empty()) {
119 return;
120 }
121
122 try {
124 m_texture_buffer->m_vertex_bytes.data(),
125 m_texture_buffer->m_vertex_bytes.size(),
127
129 "TextureProcessor: uploaded {} bytes of geometry data",
130 m_texture_buffer->m_vertex_bytes.size());
131 } catch (const std::exception& e) {
133 "Failed to upload initial geometry: {}", e.what());
134 }
135}
#define MF_ERROR(comp, ctx,...)
#define MF_DEBUG(comp, ctx,...)
std::shared_ptr< TextureBuffer > m_texture_buffer
void upload_to_gpu(const void *data, size_t size, const std::shared_ptr< VKBuffer > &target, const std::shared_ptr< VKBuffer > &staging)
Upload raw data to GPU buffer (auto-detects host-visible vs device-local)
@ BufferProcessing
Buffer processing (Buffers::BufferManager, processing chains)
@ Buffers
Buffers, Managers, processors and processing chains.

References MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, m_texture_buffer, MF_DEBUG, MF_ERROR, and MayaFlux::Buffers::upload_to_gpu().

Referenced by initialize_gpu_resources().

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