News for hackers. Stuff that matters.
Re:Imagination GPUs now support OpenGL 4.6 by verall on Thursday July 06, 2023 @03:36PM (#36621608)
> I really hope we'll soon move to a compute-only way of handling graphics

Not happening anytime soon. The industry has lined up pretty solidly behind Khronos/Vulkan.

Re:Imagination GPUs now support OpenGL 4.6 by mschuetz on Thursday July 06, 2023 @03:43PM (#36621701)
I know it won't happen overnight, but since it's already possible to do software rasterization for small triangles faster than hardware, having a graphics API framework starts losing its purpose. After all, we want to have the detail of small triangles anyway. Just let us draw to the screen in CUDA without the need for OpenGL/Vulkan interop, and I believe we'll soon see a shift to serious compute-based real-time rendering.

Basically, instead of graphics being a framework, I want graphics to be a straightforward library you include and use in your CUDA/HIP/SYCL/OpenCL code.

Re:Imagination GPUs now support OpenGL 4.6 by vitaminka on Thursday July 06, 2023 @06:22PM (#36624041)
> let us draw to the screen in CUDA without the need for OpenGL/Vulkan interop

how would that work? like GPU frameworks would just be compute (like cuda) and some small component of it would just allow to write the end result to a buffer which would be displayed or smth?

Re:Imagination GPUs now support OpenGL 4.6 by mschuetz on Friday July 07, 2023 @01:07AM (#36627417)
Exactly. Things like that already work with a workaround: You can use Cuda-OpenGL interop to expose an OpenGL framebuffer in CUDA, then you can simply write into that framebuffer from your CUDA kernel, and afterwards you get back to OpenGL to display it on screen. Just directly integrate that functionality in CUDA by providing a CUDA native framebuffer and a present(buffer) or buffer swap functionality.
Re:Imagination GPUs now support OpenGL 4.6 by pjmlp on Thursday July 06, 2023 @04:04PM (#36621999)
The industry targeting Android and GNU/Linux devices, that is.
Re:Imagination GPUs now support OpenGL 4.6 by DeathArrow on Thursday July 06, 2023 @04:26PM (#36622390)
>. The industry has lined up pretty solidly behind Khronos/Vulkan.

What industry? Gaming industry is mostly using DirectX or Gnm/PSSL.

Re:Imagination GPUs now support OpenGL 4.6 by esperent on Thursday July 06, 2023 @08:23PM (#36625277)
Only if you take a very narrow view of the gaming industry that only includes high end consoles and PCs.

The Nintendo Switch and PCs support OpenGL and Vulkan. But those are both dwarfed by mobile gaming which I think makes up more than half of the entire gaming market, and both iPhone and Android support OpenGL. Although I don't know if the majority of mobile games use it or not.

Re:Imagination GPUs now support OpenGL 4.6 by MindSpunk on Thursday July 06, 2023 @10:46PM (#36626442)
While switch supports OpenGL and Vulkan, in practice very little games use it. The native API on Switch is a proprietary API called NVN.

OpenGL on Apple is on life support to support existing software, Apple platforms are all in on Metal now.

The only platforms where OpenGL and Vulkan are first class citizens is Linux, Android and Windows (barely). And Vulkan is still second fiddle to DirectX on Windows.

Re:Imagination GPUs now support OpenGL 4.6 by esperent on Thursday July 06, 2023 @11:12PM (#36626606)
All fair points. However, I was taking issue specifically with the claim that the "Gaming industry is mostly using DirectX or Gnm/PSSL".

It would be hard to quantify exactly how much of it is using OpenGL, as a percentage.

However, for a very rough upper bound I quickly looked up these:

* Mobile gaming apparently makes 52% of the entire gaming market in 2023

* Android is 78% of mobile gaming

That could mean OpenGL makes up to 40% of the entire gaming market just from Android.

Although I have no idea what percentage of Android games use OpenGL and wouldn't know how to look that up. I also don't know how accurate those percentages are. I got them from brief Google queries and got both the 52% and 78% figures from the featured snippet.

But even if that 40% is much too high, we still need to add switch and PC games and I would find a figure of 30% of the gaming industry using openGL to be believable. That would put OpenGL as the largest API which I didn't expect, even as a possibility.

Re:Imagination GPUs now support OpenGL 4.6 by rand_flip_bit on Thursday July 06, 2023 @11:10PM (#36626600)
Just to reiterate on this point: Pretty much every Vulkan game on Windows forgoes using Vulkan Swapchains in favor of presenting from compute and using native DXGI Swapchains. If you are shipping a production quality game or application, you really want to use the platforms native APIs to get the full capabilities.
Re:Imagination GPUs now support OpenGL 4.6 by mrpippy on Friday July 07, 2023 @04:22PM (#36637796)
Interesting, like which games? I know RDR2 uses normal Vulkan swapchains.
Re:Imagination GPUs now support OpenGL 4.6 by dagmx on Friday July 07, 2023 @01:21AM (#36627521)
What percentage of applications *natively* target Vulkan?

Imho Vulkan is the least used of all the APIs if you disregard it as a compatibility layer