nexus_rbd2d 0.4.0

Cross-platform 2D GPU-accelerated rigid-body physics.
1
2
3
4
5
6
7
8
9
10
11
12
13
use khal_builder::KhalBuilder;
use std::path::PathBuf;

fn main() {
    let output_dir = PathBuf::from(std::env::var_os("OUT_DIR").expect("OUT_DIR not set by cargo"))
        .join("shaders-spirv");

    KhalBuilder::from_dependency("nexus_rbd_shaders2d", true)
        .feature("dim2")
        // Feature enabled unconditionally for the radix-sort device lost issue (see comment in the radix sort shader code).
        .feature("unsafe_remove_boundchecks")
        .build(output_dir);
}