Since I personally stopped using Rust again however, this crate has ended up more or less unmaintained. Note: I was originally using this crate as a way of learning Rust. Last commit adds this disclaimer to the readme:
#Moltengl opengl 4.3 core update#
There is an open pull request rhoot/bgfx-rs#3 to update to the latest bgfx and dependencies, but the CI failed. The only potential problem with bgfx is the Rust wrapper, was last modified 2 years ago, and isn't published on crates.io. Gl_FragColor = texture2D(u_texColor, v_texcoord0) $input v_color0, v_texcoord0 SAMPLER2D(u_texColor, 0) sc, similar to glsl, but is preprocessed, so it is compiled to other rendering backend languages, examples: BGFX has its own shader compiler, shaderc, which accepts its own shading language language.
An informative presentation: From the Dark Side of the Moon: GPU Programming with BGFX and Eclipse, a good introduction to bgfx (although for a different platform, general concepts apply). The other options are to implement our own rendering backends separately, or, stay on OpenGL (do nothing). ", supports D3D, Vulkan, Metal, OG元, and OGL ES 3, but its for dotnet.