![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\variable QRhiGles2InitParams::format More...
\variable QRhiGles2InitParams::format
The QSurfaceFormat, initialized to QSurfaceFormat::defaultFormat() by default.
\variable QRhiGles2InitParams::fallbackSurface
A QSurface compatible with \l format. Typically a QOffscreenSurface. Providing this is mandatory. Be aware of the threading implications: a QOffscreenSurface, like QWindow, must only ever be created and destroyed on the main (gui) thread, even if the QRhi is created and operates on another thread.
\variable QRhiGles2InitParams::window
Optional, but setting it is recommended when targeting a QWindow with the QRhi.
\variable QRhiGles2InitParams::shareContext
Optional, the QOpenGLContext to share resource with. QRhi creates its own context, and setting this member to a valid QOpenGLContext leads to calling \l{QOpenGLContext::setShareContext()}{setShareContext()} with it.
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
Holds the OpenGL context used by the QRhi.