QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
QGCRhiCapture Namespace Reference

Resolves and caches the QRhi* driving QGC's main scene graph; Qt has no global RHI accessor. More...

Classes

struct  DeviceSnapshot
 

Functions

QRhi * cachedRhi () noexcept
 Cached QRhi* maintained by sceneGraph signals; safe from any thread via acquire ordering.
 
DeviceSnapshotdeviceSnapshot () noexcept
 Returns the global snapshot. Atomic fields make individual reads thread-safe.
 
void connectWindow (QQuickWindow *window)
 

Detailed Description

Resolves and caches the QRhi* driving QGC's main scene graph; Qt has no global RHI accessor.

Function Documentation

◆ cachedRhi()

QRhi * QGCRhiCapture::cachedRhi ( )
noexcept

Cached QRhi* maintained by sceneGraph signals; safe from any thread via acquire ordering.

Definition at line 98 of file QGCRhiCapture.cc.

Referenced by GStreamer::onMainWindowReady().

◆ connectWindow()

void QGCRhiCapture::connectWindow ( QQuickWindow *  window)

Call once from the GUI thread once the main QQuickWindow exists; wires sceneGraph signals to maintain cachedRhi() and the device snapshot.

Definition at line 108 of file QGCRhiCapture.cc.

References HwBuffers::resetCachedGpuResources().

Referenced by HwBuffers::connectMainWindow().

◆ deviceSnapshot()

DeviceSnapshot & QGCRhiCapture::deviceSnapshot ( )
noexcept

Returns the global snapshot. Atomic fields make individual reads thread-safe.

Definition at line 103 of file QGCRhiCapture.cc.