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

◆ create_gpu_texture()

std::shared_ptr< Core::VKImage > MayaFlux::Buffers::TextureProcessor::create_gpu_texture ( )
private

Create VKImage for texture storage.

Definition at line 203 of file TextureProcessor.cpp.

204{
205 if (!m_texture_buffer) {
206 return nullptr;
207 }
208
210
211 auto texture = loom.create_2d(
212 m_texture_buffer->get_width(),
213 m_texture_buffer->get_height(),
214 m_texture_buffer->get_format(),
215 nullptr,
216 1);
217
218 if (!texture) {
219 error<std::runtime_error>(
222 std::source_location::current(),
223 "Failed to create GPU texture via TextureLoom");
224 }
225
227 "TextureProcessor: created GPU VKImage {}x{}",
228 m_texture_buffer->get_width(), m_texture_buffer->get_height());
229
230 return texture;
231}
#define MF_INFO(comp, ctx,...)
std::shared_ptr< TextureBuffer > m_texture_buffer
@ BufferProcessing
Buffer processing (Buffers::BufferManager, processing chains)
@ Buffers
Buffers, Managers, processors and processing chains.
MAYAFLUX_API TextureLoom & get_texture_manager()
Get the global texture manager instance.

References MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, MayaFlux::Portal::Graphics::get_texture_manager(), m_texture_buffer, and MF_INFO.

Referenced by initialize_gpu_resources(), and update_pixels_if_dirty().

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