MayaFlux 0.4.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 283 of file TextureProcessor.cpp.

284{
285 if (!m_texture_buffer) {
286 return nullptr;
287 }
288
290
291 auto texture = loom.create_2d(
292 m_texture_buffer->get_width(),
293 m_texture_buffer->get_height(),
294 m_texture_buffer->get_format(),
295 nullptr,
296 1);
297
298 if (!texture) {
299 error<std::runtime_error>(
302 std::source_location::current(),
303 "Failed to create GPU texture via TextureLoom");
304 }
305
307 "TextureProcessor: created GPU VKImage {}x{}",
308 m_texture_buffer->get_width(), m_texture_buffer->get_height());
309
310 return texture;
311}
#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: