MayaFlux 0.1.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 100 of file TextureProcessor.cpp.

101{
102 if (!m_texture_buffer || m_texture_buffer->m_vertex_bytes.empty()) {
103 return;
104 }
105
106 try {
108 m_texture_buffer->m_vertex_bytes.data(),
109 m_texture_buffer->m_vertex_bytes.size(),
111
113 "TextureProcessor: uploaded {} bytes of geometry data",
114 m_texture_buffer->m_vertex_bytes.size());
115 } catch (const std::exception& e) {
117 "Failed to upload initial geometry: {}", e.what());
118 }
119}
#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: