Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QRhiAdapter Class Referenceabstract

\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h More...

#include <qrhi.h>

Inheritance diagram for QRhiAdapter:
Collaboration diagram for QRhiAdapter:

Public Member Functions

virtual ~QRhiAdapter ()
virtual QRhiDriverInfo info () const =0

Detailed Description

\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h

Since
6.10

Represents a physical graphics device.

Some QRhi backends target graphics APIs that expose the concept of adapters or {physical devices}. Call the static \l {QRhi::}{enumerateAdapters()} function to retrieve a list of the adapters present in the system. Pass one of the returned QRhiAdapter objects to \l {QRhi::}{create()} in order to request using the adapter or physical device the QRhiAdapter corresponds to. Other than exposing the QRhiDriverInfo, QRhiAdapter is to be treated as an opaque handle.

Note
With Vulkan, the QRhiAdapter is valid only as long as the QVulkanInstance that was used for \l{QRhi::}{enumerateAdapters()} is valid. This also means that a QRhiAdapter is tied to the Vulkan instance (QVulkanInstance, VkInstance) and cannot be used in the context of another Vulkan instance.
This is a RHI API with limited compatibility guarantees, see \l QRhi for details.

Definition at line 1847 of file qrhi.h.

Constructor & Destructor Documentation

◆ ~QRhiAdapter()

QRhiAdapter::~QRhiAdapter ( )
virtual

Definition at line 9350 of file qrhi.cpp.

Member Function Documentation

◆ info()

virtual QRhiDriverInfo QRhiAdapter::info ( ) const
pure virtual
Returns
the corresponding QRhiDriverInfo.

Implemented in QD3D11Adapter, and QVulkanAdapter.


The documentation for this class was generated from the following files: