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

82{
83 if (!m_texture_buffer) {
84 return;
85 }
86
87 m_texture_buffer->m_gpu_texture = create_gpu_texture();
88
90
92
93 m_texture_buffer->m_texture_dirty = false;
94 m_texture_buffer->m_geometry_dirty = false;
95
97 "TextureProcessor: GPU resources initialized");
98}
#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: