Return to site

How do you use metal for osx

broken image
broken image

Most graphical Java applications are written using the Swing UI toolkit, which renders via the Java 2D API. For the Java 2D API, this is generally the case with some exceptions. Java 2D on macOS is completely reliant on OpenGL for its internal rendering pipeline, so a new pipeline implementation is needed.Īpple claims that the Metal framework, their replacement for OpenGL, has superior performance. Two major factors motivate the introduction of a new Metal-based rendering pipeline on macOS:Īpple deprecated the OpenGL rendering library in macOS 10.14, in September 2018. It is not a goal to add any new Java or JDK APIs. It is not a goal to remove or disable the existing OpenGL pipeline. Provide performance as good or better than the OpenGL pipeline in select real applications and benchmarks.Ĭreate a clean architecture that fits into the existing Java 2D pipeline model.Ĭo-exist with the OpenGL pipeline until it is obsolete. Provide a fully functional rendering pipeline for the Java 2D API that uses the macOS Metal framework.īe ready in the event Apple removes the deprecated OpenGL API from a future version of macOS.Įnsure transparency of the new pipeline to Java applications.Įnsure functional parity of the implementation with the existing OpenGL pipeline. Implement a Java 2D internal rendering pipeline for macOS using the Apple Metal API as alternative to the existing pipeline, which uses the deprecated Apple OpenGL API.