Details
-
Suggestion
-
Resolution: Invalid
-
Not Evaluated
-
None
-
6.2.0 Beta1
-
None
Description
The QIOSWindow implementation provides access to the EGL layer:
CAEAGLLayer *QIOSWindow::eaglLayer() const { Q_ASSERT([m_view.layer isKindOfClass:[CAEAGLLayer class]]); return static_cast<CAEAGLLayer *>(m_view.layer); }
It would be useful to also have access to the metal layer:
CAMetalLLayer *QIOSWindow::metalLayer() const { Q_ASSERT([m_view.layer isKindOfClass:[CAMetalLLayer class]]); return static_cast<CAMetalLLayer *>(m_view.layer); }
This is especially useful when using OpenGL-Metal wrapper libraries such as MetalAngle (https://github.com/kakashidinho/metalangle).