I was trying to capture a gpu frame of an MAC openGL program (https://github.com/JohnTargaryen/LearnOpenGL/blob/master/src/1.getting_started/2.1.hello_triangle/hello_triangle.cpp) using xcode. The camera icon used to capture frame didn't show up when i ran the program, so I did as the link below suggested, meaning to change GPU Frame Capture to GLES. However, there is no GLES option for me to choose. no GLES option in GPU Frame Capture in xcode edit scheme
What's the possible cause and how I can solve it? Thx in advance!
Apple has deprecated OpenGL ES in iOS 12, the XCode GPU tools now only support the Metal API.
Also, OpenGL-ES is not available on MacOS, only OpenGL, which is also deprecated.
See the warning mention for example in https://developer.apple.com/library/archive/documentation/3DDrawing/Conceptual/OpenGLES_ProgrammingGuide/Introduction/Introduction.html
Important OpenGL ES was deprecated in iOS 12. To create high-performance code on GPUs, use the Metal framework instead. See Metal.
For OpenGL, a similar warning mention is visible :
OpenGL was deprecated in macOS 10.14. To create high-performance code on GPUs, use the Metal framework instead. See Metal.