![]() |
Qt 6.x
The Qt SDK
|
\inmodule QtGui More...
#include <qrhi.h>
Public Types | |
enum | DeviceType { UnknownDevice , IntegratedDevice , DiscreteDevice , ExternalDevice , VirtualDevice , CpuDevice } |
Specifies the graphics device's type, when the information is available. More... | |
Public Attributes | |
QByteArray | deviceName |
quint64 | deviceId = 0 |
quint64 | vendorId = 0 |
DeviceType | deviceType = UnknownDevice |
\inmodule QtGui
Describes the physical device, adapter, or graphics API implementation that is used by an initialized QRhi.
Graphics APIs offer different levels and kinds of information. The only value that is available across all APIs is the deviceName, which is a freetext description of the physical device, adapter, or is a combination of the strings reported for {GL_VENDOR} +
{GL_RENDERER} +
{GL_VERSION}. The deviceId is always 0 for OpenGL. vendorId is always 0 for OpenGL and Metal. deviceType is always UnknownDevice for OpenGL and Direct 3D.
Specifies the graphics device's type, when the information is available.
In practice this is only applicable with Vulkan and Metal. With others the value will always be UnknownDevice.
\value UnknownDevice \value IntegratedDevice \value DiscreteDevice \value ExternalDevice \value VirtualDevice \value CpuDevice
Enumerator | |
---|---|
UnknownDevice | |
IntegratedDevice | |
DiscreteDevice | |
ExternalDevice | |
VirtualDevice | |
CpuDevice |
quint64 QRhiDriverInfo::deviceId = 0 |
Definition at line 1733 of file qrhi.h.
Referenced by QRhiD3D11::create(), and QRhiVulkan::create().
QByteArray QRhiDriverInfo::deviceName |
Definition at line 1732 of file qrhi.h.
Referenced by QRhiD3D11::create(), QRhiGles2::create(), QRhiMetal::create(), QRhiVulkan::create(), QRhiGles2::pipelineCacheData(), QRhiMetal::pipelineCacheData(), QRhiGles2::setPipelineCacheData(), and QRhiMetal::setPipelineCacheData().
DeviceType QRhiDriverInfo::deviceType = UnknownDevice |
Definition at line 1735 of file qrhi.h.
Referenced by QRhiMetal::create(), and QRhiVulkan::create().
quint64 QRhiDriverInfo::vendorId = 0 |
Definition at line 1734 of file qrhi.h.
Referenced by QRhiD3D11::create(), and QRhiVulkan::create().