A modern 3D/2D game engine that uses wgpu.
A modern 3D/2D game engine that uses wgpu and is designed to work out of the box with minimal effort. It uses legion for handling game/rendering data.
Note: Currently this library is very early in development. Things are very likely going to change.
To run on metal with validation:
METAL_DEVICE_WRAPPER_TYPE=1 cargo run --example hello-cube
To run on vulkan:
cargo run --example hello-cube
Validation should be turned on already you only need to make sure to have the latest vulkan sdk installed. https://vulkan.lunarg.com/
hello-worlda simple example showcasing the ability to draw text to the screen.
hello-cubea example of how to load gltf files and display them on the screen.
benchmarka benchmark that renders 2500 cubes to test performance.
We use shaderc-rs in harmony to compile GLSL into spir-v. This process works great once we have compiled shaderc-rs unfortunetly shaderc-rs uses shaderc which is written in C++. It tends to compile very slow and require certain things to compile successfully. We have an issue to eventually replace shaderc with something written in pure rust, but currently that crate does not exist. For now anyone attempting to use harmony who encounters issues compiling shaderc should take a look at the documentation found in the readme of shaderc-rs's github page which can be found here:
If more help is needed or you feel as though the issue you encountered is directly related to shaderc's usage in harmony feel free to open an issue.
You can find me on the rust game development discord server. I'm more than happy to help out if I am around!