Rust's Low-Level Graphics Abstraction Layer Is Showing A Lot Of Potential

Written by Michael Larabel in Vulkan on 10 August 2018 at 02:49 PM EDT. 23 Comments
VULKAN
The Rust programming language's "GFX-RS" initiative that is backed by Mozilla continues working on exposing a universal "Vulkan-like" graphics API within Rust that in turn would have back-ends for Vulkan, OpenGL, Metal, and Direct3D 11/12 in order to reach all major platforms. Early benchmark results are quite promising for GFX-RS.

Besides exposing its own Vulkan-like API for Rust developers, they are also building a Vulkan Portability implementation on top of it to let non-Rust programs/games making use of Vulkan to in turn run on it -- just like MoltenVK can be used today for running Vulkan games/applications on macOS. Instead this extra layer on top of GFX-RS would allow Vulkan programs to also run on Windows and elsewhere by mapping it down to D3D/Metal/OpenGL.

GFX-RS developers have been testing their Vulkan portability implementation using Dota 2 on macOS, which natively supports Vulkan and by default relies upon MoltenVK at this time.

With using Metal's deferred mode with GFX-RS, the CPU usage in the main thread was at 12% compared to 21% with MoltenVK. The performance was also better at 47 vs. 40 FPS with low quality settings or 41 vs. 35 FPS at high quality settings on AMD hardware. The AMD graphics results were closer while the NVIDIA performance on a third system sided with the GFX-RS results for Dota 2 benchmarking.

More details on the current state of GFX-RS for Vulkan portability can be found via gfx-rs.github.io. Next week is SIGGRAPH 2018 so expect to hear some more graphics driver news at that stage.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week