Re:Deprecation of OpenGL and OpenCL
by amag on Monday June 04, 2018 @05:51PM
(#17232914)
OpenGL is still an option on Windows, it's not deprecated.
[ Parent
| on HN ]
That depends on who you ask. OpenGL is in the deprecated API section on MSDN[1]. Because of the ICD model, Microsoft can't prevent GPU vendors from adding OpenGL features, but they don't bother integrating it with modern Windows APIs. You can't create an OpenGL context on a DirectComposition surface or in a UWP app. It integrates poorly with the compositor. You can't get composition feedback, and most drivers will flicker or show artifacts when windows are resized. OpenGL apps don't get windowed-fullscreen optimizations and you can't control when they enter exclusive fullscreen mode. I don't think you can use windowed-stereoscopic or windowed-HDR either. All these issues push developers away from OpenGL and towards DirectX, which is what Microsoft wants.
[1]: https://msdn.microsoft.com/en-us/library/windows/desktop/ff8...
Deprecated means very different things when coming from Microsoft and Apple.
It’s not deprecated because it’s not even there to begin with — Windows 10 doesn’t ship OpenGL by default; GPU vendors provide their own implementations.
Which AFAIK they’re free to do on MacOS as well, they just don’t seem to bother since Apple was doing that work for them
> Which AFAIK they’re free to do on MacOS as well, they just don’t seem to bother since Apple was doing that work for them
As far as I am aware Apple develops the GPU drivers for OS X (though, I think, based on code that the GPU vendor provides).
OpenGL is not a driver though, it's a graphics API
At least on Windows, the OpenGL implementation is part of the graphics driver. Why? Because by default Windows only has between rudimentary (at least up to Vista, I think; I am not sure about Windows 7 and 8.1) and no (Windows 10) OpenGL support - this is what the GPU vendors provides as part of his graphics driver.
> At least on Windows, the OpenGL implementation is part of the graphics driver.
It's distributed with the Graphics Driver, but most of it exists in a user space library, not in the driver proper.
Which AFAIK they’re free to do on MacOS as well, they just don’t seem to bother since Apple was doing that work for them
I'm not sure. NVIDIA provides updates for CUDA and an extremely limited amount of updates for their graphics stack (AFAIK none at all for integrated graphics, for example).