MayaFlux 0.3.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 106 of file TextureProcessor.cpp.

107{
108 if (!m_texture_buffer || m_texture_buffer->m_vertex_bytes.empty()) {
109 return;
110 }
111
112 try {
114 m_texture_buffer->m_vertex_bytes.data(),
115 m_texture_buffer->m_vertex_bytes.size(),
117
119 "TextureProcessor: uploaded {} bytes of geometry data",
120 m_texture_buffer->m_vertex_bytes.size());
121 } catch (const std::exception& e) {
123 "Failed to upload initial geometry: {}", e.what());
124 }
125}
#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: