55 void on_attach(
const std::shared_ptr<Buffer>& buffer)
override;
56 void on_detach(
const std::shared_ptr<Buffer>& buffer)
override;
57 void processing_function(
const std::shared_ptr<Buffer>& buffer)
override;
69 bool m_streaming_mode {};
81 void initialize_gpu_resources();
86 void upload_initial_geometry();
91 void upload_initial_pixels();
100 void update_geometry_if_dirty();
105 void update_pixels_if_dirty();
114 std::shared_ptr<Core::VKImage> create_gpu_texture();
120 void generate_quad_vertices(std::vector<uint8_t>& out_bytes);
bool is_streaming_mode() const
Check if streaming mode is enabled.
~TextureProcessor() override
void set_streaming_mode(bool enabled)
Enable or disable streaming mode for pixel uploads.
std::shared_ptr< TextureBuffer > m_texture_buffer
std::shared_ptr< Buffers::VKBuffer > m_stream_staging
Persistent host-visible staging buffer for streaming pixel uploads.
Internal processor: handles CPU→GPU transfers for TextureBuffer.