Samples for the hxwgpu library.
Make sure to clone this repository with --recursive, or download the submodule with git submodule update --init --recursive.
Requirements:
- hwglfwhttps://github.com/ibilon/hxglfw#building
- hxshaderchttps://github.com/ibilon/hxshaderc#building
- hxwgpuhttps://github.com/ibilon/hxwgpu#building
To build:
- Compile the cppia host with haxe cppia_host.hxml, this only need to be rebuilt if hxwgpu or hxglfw are updated or changed
- Compile the samples with haxe build_all.hxml
To run the samples:
- hello_triangle:- ./build/cppia_host/CppiaHost-debug build/hello_triangle.cppia
The samples are adapted from the rust versions in wgpu-rs and are licensed under the MPL-2.0 license.