43 RendererDesktopGL = 0x02,
44 RendererOpenGLES = 0x04,
45 RendererSoftware = 0x08
50 AngleRendererDefault = 0x0000,
51 AngleRendererD3d11 = 0x0002,
52 AngleRendererD3d9 = 0x0004,
53 AngleRendererD3d11Warp = 0x0008,
74 static void setDefaultSurfaceConfig(
const RendererConfig &config);
76 static OpenGLRenderer getCurrentOpenGLRenderer();
77 static OpenGLRenderer getQtPreferredOpenGLRenderer();
78 static OpenGLRenderers getSupportedOpenGLRenderers();
79 static OpenGLRenderer getUserPreferredOpenGLRendererConfig();
80 static void setUserPreferredOpenGLRendererConfig(OpenGLRenderer renderer);
81 static QString convertOpenGLRendererToConfig(OpenGLRenderer renderer);
82 static OpenGLRenderer convertConfigToOpenGLRenderer(QString renderer);
85 static void initialize();
88 static void initializeContext(QOpenGLContext *ctx);
90 static const QString &getDebugText();
94 static QString currentDriver();
95 static bool supportsLoD();
96 static bool hasOpenGL3();
97 static bool hasOpenGLES();
98 static bool supportsVAO();
101 static bool hasOpenGL();
107 static bool supportsFenceSync();
109 static bool supportsBufferMapping();
111 static bool forceDisableTextureBuffers();
112 static bool shouldUseTextureBuffers(
bool userPreference);
114 static bool useTextureBufferInvalidation();
122 static bool useFBOForToolOutlineRendering();
128 static bool needsFenceWorkaround();
130 static void testingInitializeDefaultSurfaceFormat();
131 static void setDebugSynchronous(
bool value);
133 static void glInvalidateBufferData(
uint buffer);
135 static std::optional<XcbGLProviderProtocol> xcbGlProviderProtocol();
Q_DECLARE_FLAGS(KisUpdaterContextSnapshotEx, KisUpdaterContextSnapshotExTag)