News for hackers. Stuff that matters.
Re:Leveraging Rust and the GPU to render user interfaces at ... by fxtentacle on Thursday March 09, 2023 @08:16AM (#35080846)
Just checked and even without any additional setup JUCE is using CoreGraphics which is using Metal under the hood. So yes, the platform-specific renderer is using GPU.

Also, you can use OpenGL for GUI compositing, too, not only as a 3D context.

Re:Leveraging Rust and the GPU to render user interfaces at ... by meindnoch on Thursday March 09, 2023 @09:37AM (#35081593)
CoreGraphics doesn't use Metal. You're confusing it with CoreAnimation.
Re:Leveraging Rust and the GPU to render user interfaces at ... by kridsdale1 on Thursday March 09, 2023 @09:45AM (#35081685)
I concur.
Re:Leveraging Rust and the GPU to render user interfaces at ... by fxtentacle on Thursday March 09, 2023 @12:54PM (#35084277)
JUCE has a CoreGraphicsMetalLayerRenderer which I understood as using Metal to render CoreGraphics paths.

https://github.com/juce-framework/JUCE/blob/4e68af7fde8a0a64...

Re:Leveraging Rust and the GPU to render user interfaces at ... by meindnoch on Thursday March 09, 2023 @02:15PM (#35085329)
Incorrect. Please read the code more carefully.

It uses CoreGraphics to render into a bitmap on the CPU, which is then uploaded into a Metal texture.

Re:Leveraging Rust and the GPU to render user interfaces at ... by Jasper_ on Thursday March 09, 2023 @09:56AM (#35081804)
CoreGraphics is a CPU rasterizer. It doesn't use the GPU.