KWin
|
#include <glplatform.h>
Static Public Member Functions | |
static GLPlatform * | instance () |
static QString | driverToString (Driver driver) |
static QByteArray | driverToString8 (Driver driver) |
static QString | chipClassToString (ChipClass chipClass) |
static QByteArray | chipClassToString8 (ChipClass chipClass) |
Friends | |
void | KWin::cleanupGL () |
Definition at line 157 of file glplatform.h.
KWin::GLPlatform::~GLPlatform | ( | ) |
Definition at line 726 of file glplatform.cpp.
ChipClass KWin::GLPlatform::chipClass | ( | ) | const |
Returns the chip class.
Definition at line 1098 of file glplatform.cpp.
|
static |
chipClass
as a QString. Definition at line 587 of file glplatform.cpp.
|
static |
chipClass
as a QByteArray. Definition at line 591 of file glplatform.cpp.
void KWin::GLPlatform::detect | ( | OpenGLPlatformInterface | platformInterface | ) |
Runs the detection code using the current OpenGL context.
Definition at line 730 of file glplatform.cpp.
Driver KWin::GLPlatform::driver | ( | ) | const |
Returns the driver.
Definition at line 1093 of file glplatform.cpp.
|
static |
driver
as a QString. Definition at line 530 of file glplatform.cpp.
|
static |
driver
as a QByteArray. Definition at line 534 of file glplatform.cpp.
Version KWin::GLPlatform::driverVersion | ( | ) | const |
Returns the driver version.
For Mesa drivers, this is the same as the Mesa version number.
Definition at line 1084 of file glplatform.cpp.
QByteArrayView KWin::GLPlatform::glRendererString | ( | ) | const |
Definition at line 1168 of file glplatform.cpp.
QByteArrayView KWin::GLPlatform::glShadingLanguageVersionString | ( | ) | const |
Definition at line 1183 of file glplatform.cpp.
Version KWin::GLPlatform::glslVersion | ( | ) | const |
Returns the GLSL version if the driver supports GLSL, and 0 otherwise.
Definition at line 1074 of file glplatform.cpp.
QByteArrayView KWin::GLPlatform::glVendorString | ( | ) | const |
Definition at line 1173 of file glplatform.cpp.
Version KWin::GLPlatform::glVersion | ( | ) | const |
Returns the OpenGL version.
Definition at line 1069 of file glplatform.cpp.
QByteArrayView KWin::GLPlatform::glVersionString | ( | ) | const |
Definition at line 1178 of file glplatform.cpp.
|
inlinestatic |
Returns a pointer to the GLPlatform instance.
Definition at line 394 of file glplatform.h.
bool KWin::GLPlatform::isAdreno | ( | ) | const |
true
if the GPU is a Qualcomm Adreno GPU, and false otherwise Definition at line 1143 of file glplatform.cpp.
bool KWin::GLPlatform::isGLES | ( | ) | const |
Definition at line 1213 of file glplatform.cpp.
bool KWin::GLPlatform::isIntel | ( | ) | const |
Returns true if the GPU is an Intel GPU, and false otherwise.
Definition at line 1118 of file glplatform.cpp.
bool KWin::GLPlatform::isLima | ( | ) | const |
true
if the GPU is a Mali GPU supported by the Lima driver (Mali 400, 450) Definition at line 1153 of file glplatform.cpp.
bool KWin::GLPlatform::isLooseBinding | ( | ) | const |
Definition at line 1188 of file glplatform.cpp.
bool KWin::GLPlatform::isMesaDriver | ( | ) | const |
Returns true if the driver is a Mesa driver, and false otherwise.
Definition at line 1103 of file glplatform.cpp.
bool KWin::GLPlatform::isNvidia | ( | ) | const |
Returns true if the GPU is an NVIDIA GPU, and false otherwise.
Definition at line 1113 of file glplatform.cpp.
bool KWin::GLPlatform::isPanfrost | ( | ) | const |
true
if the "GPU" is a Panfrost Mali GPU Definition at line 1148 of file glplatform.cpp.
bool KWin::GLPlatform::isRadeon | ( | ) | const |
Returns true if the GPU is a Radeon GPU, and false otherwise.
Definition at line 1108 of file glplatform.cpp.
bool KWin::GLPlatform::isSoftwareEmulation | ( | ) | const |
true
if OpenGL is emulated in software. Definition at line 1138 of file glplatform.cpp.
bool KWin::GLPlatform::isVideoCore3D | ( | ) | const |
true
if the GPU is a Broadcom VideoCore 3D (e.g. Raspberry Pi 4, 400) Definition at line 1163 of file glplatform.cpp.
bool KWin::GLPlatform::isVideoCore4 | ( | ) | const |
true
if the GPU is a Broadcom VideoCore IV (e.g. Raspberry Pi 0 to 3) Definition at line 1158 of file glplatform.cpp.
bool KWin::GLPlatform::isVirgl | ( | ) | const |
true
if the "GPU" is a virtio-gpu (Qemu/KVM) Definition at line 1133 of file glplatform.cpp.
bool KWin::GLPlatform::isVirtualBox | ( | ) | const |
true
if the "GPU" is a VirtualBox GPU, and false
otherwise. Definition at line 1123 of file glplatform.cpp.
bool KWin::GLPlatform::isVirtualMachine | ( | ) | const |
true
if the driver is known to be from a virtual machine. Definition at line 1193 of file glplatform.cpp.
bool KWin::GLPlatform::isVMware | ( | ) | const |
true
if the "GPU" is a VMWare GPU, and false
otherwise. Definition at line 1128 of file glplatform.cpp.
Version KWin::GLPlatform::mesaVersion | ( | ) | const |
Returns the Mesa version if the driver is a Mesa driver, and 0 otherwise.
Definition at line 1079 of file glplatform.cpp.
OpenGLPlatformInterface KWin::GLPlatform::platformInterface | ( | ) | const |
Definition at line 1208 of file glplatform.cpp.
bool KWin::GLPlatform::preferBufferSubData | ( | ) | const |
Returns true if glMapBufferRange() is likely to perform worse than glBufferSubData() when updating an unused range of a buffer object, and false otherwise.
Definition at line 1203 of file glplatform.cpp.
void KWin::GLPlatform::printResults | ( | ) | const |
Prints the results of the detection code.
Definition at line 1035 of file glplatform.cpp.
CompositingType KWin::GLPlatform::recommendedCompositor | ( | ) | const |
Definition at line 1198 of file glplatform.cpp.
bool KWin::GLPlatform::supports | ( | GLFeature | feature | ) | const |
Returns true if the driver support the given feature, and false otherwise.
Definition at line 1056 of file glplatform.cpp.
|
friend |