CaptureMoment 0.1.0
Free and open-source non-destructive photo editor
Loading...
Searching...
No Matches
rhi_image_item_renderer.h File Reference

RHI renderer implementation for hardware-accelerated image display. More...

#include <QQuickRhiItemRenderer>
#include <rhi/qrhi.h>
#include <QMutex>
#include <QPointF>
#include <QSize>
#include <vector>
#include <memory>
+ Include dependency graph for rhi_image_item_renderer.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CaptureMoment::UI::Rendering::RHIImageItemRenderer
 GPU renderer for RHIImageItem using Qt's Rendering Hardware Interface. More...
 

Namespaces

namespace  CaptureMoment
 
namespace  CaptureMoment::Core
 Manages the lifecycle of a single IWorkingImage instance.
 
namespace  CaptureMoment::Core::Common
 
namespace  CaptureMoment::UI
 
namespace  CaptureMoment::UI::Rendering
 Namespace containing Qt-specific UI components for CaptureMoment.
 

Detailed Description

RHI renderer implementation for hardware-accelerated image display.

Author
CaptureMoment Team
Date
2025

This file provides the RHIImageItemRenderer class which handles all GPU-side rendering operations for RHIImageItem. It operates on Qt's render thread and manages the complete graphics pipeline for displaying images.

Threading Model
The renderer follows Qt's threaded rendering architecture:
  • GUI Thread: RHIImageItem lives here, receives setImage() calls
  • Render Thread: RHIImageItemRenderer lives here, performs GPU operations
  • Synchronization: synchronize() copies data between threads safely
Resource Ownership
All RHI resources (texture, sampler, buffers, pipeline) are owned via unique_ptr and automatically cleaned up in the destructor.
See also
RHIImageItem for the QQuickItem frontend
QRhi documentation for Qt's rendering hardware interface

Definition in file rhi_image_item_renderer.h.

CaptureMoment — footer