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

◆ set_streaming_mode()

void MayaFlux::Buffers::TextureProcessor::set_streaming_mode ( bool  enabled)
inline

Enable or disable streaming mode for pixel uploads.

When enabled, TextureProcessor will reuse a persistent host-visible staging buffer for all pixel uploads, eliminating the per-frame Vulkan object churn that causes VK_ERROR_DEVICE_LOST under sustained updates (e.g. video playback).

The staging buffer is allocated on first dirty update via TextureLoom::create_streaming_staging() and reused every subsequent frame. This is only used for pixel data uploads, not geometry.

Parameters
enabledTrue to enable streaming mode, false to disable (default)

Definition at line 46 of file TextureProcessor.hpp.