QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
QGCRhiCapture::DeviceSnapshot Struct Reference

#include <QGCRhiCapture.h>

Public Attributes

std::atomic< int > backend {-1}
 QRhi::Implementation cast to int (-1 = unset).
std::atomic< void * > d3d11Device {nullptr}
 ID3D11Device* (Windows only).
std::atomic< qint64 > adapterLuid {0}
std::atomic< bool > d3d11OpensD3D12 {false}
std::atomic< quint32 > vkVendorId {0}
 vendorID
std::atomic< quint32 > vkDeviceId {0}
 deviceID
std::array< std::atomic< quint64 >, 2 > vkPipelineCacheUuid {}
 pipelineCacheUUID, 8 bytes each in memory order

Detailed Description

Atomic snapshot of native device handles; populated on render thread (where nativeHandles() is safe), safe from any thread.

Definition at line 18 of file QGCRhiCapture.h.

Member Data Documentation

◆ adapterLuid

std::atomic<qint64> QGCRhiCapture::DeviceSnapshot::adapterLuid {0}

Composed (high<<32)|low LUID, 0 if unknown

Definition at line 22 of file QGCRhiCapture.h.

Referenced by HwBuffers::graphicsAdapterLuid().

◆ backend

std::atomic<int> QGCRhiCapture::DeviceSnapshot::backend {-1}

QRhi::Implementation cast to int (-1 = unset).

Definition at line 20 of file QGCRhiCapture.h.

◆ d3d11Device

std::atomic<void*> QGCRhiCapture::DeviceSnapshot::d3d11Device {nullptr}

ID3D11Device* (Windows only).

Definition at line 21 of file QGCRhiCapture.h.

◆ d3d11OpensD3D12

std::atomic<bool> QGCRhiCapture::DeviceSnapshot::d3d11OpensD3D12 {false}

The Direct3D 11 device Qt renders with opens a Direct3D 12 device's resources as textures, as the D3D12 path found on the render thread; false for any other backend.

Definition at line 25 of file QGCRhiCapture.h.

Referenced by HwBuffers::d3d11OpensD3D12().

◆ vkDeviceId

std::atomic<quint32> QGCRhiCapture::DeviceSnapshot::vkDeviceId {0}

deviceID

Definition at line 30 of file QGCRhiCapture.h.

◆ vkPipelineCacheUuid

std::array<std::atomic<quint64>, 2> QGCRhiCapture::DeviceSnapshot::vkPipelineCacheUuid {}

pipelineCacheUUID, 8 bytes each in memory order

Definition at line 31 of file QGCRhiCapture.h.

◆ vkVendorId

std::atomic<quint32> QGCRhiCapture::DeviceSnapshot::vkVendorId {0}

vendorID

The Vulkan physical device Qt renders on, as its VkPhysicalDeviceProperties name it: the VkPhysicalDevice handle belongs to Qt's VkInstance and matches nothing in another one, such as GStreamer's. Zero unless the backend is Vulkan and the gst-vulkan path is compiled.

Definition at line 29 of file QGCRhiCapture.h.


The documentation for this struct was generated from the following file: