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

◆ initialize_gpu_resources()

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

Initialize all GPU resources:

  • VKImage for texture
  • Vertex buffer with quad geometry
  • Pixel upload

Definition at line 87 of file TextureProcessor.cpp.

88{
89 if (!m_texture_buffer) {
90 return;
91 }
92
93 m_texture_buffer->m_gpu_texture = create_gpu_texture();
94
96
98
99 m_texture_buffer->m_texture_dirty = false;
100 m_texture_buffer->m_geometry_dirty = false;
101
103 "TextureProcessor: GPU resources initialized");
104}
#define MF_DEBUG(comp, ctx,...)
std::shared_ptr< Core::VKImage > create_gpu_texture()
Create VKImage for texture storage.
void upload_initial_pixels()
Upload initial pixel data to GPU texture.
std::shared_ptr< TextureBuffer > m_texture_buffer
void upload_initial_geometry()
Upload initial quad geometry based on default or custom vertices.
@ BufferProcessing
Buffer processing (Buffers::BufferManager, processing chains)
@ Buffers
Buffers, Managers, processors and processing chains.

References MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, create_gpu_texture(), m_texture_buffer, MF_DEBUG, upload_initial_geometry(), and upload_initial_pixels().

Referenced by on_attach().

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