TwGpu Tools
Powered by the twgpu library!
Overview
All tools are command line argument based and explain their usage with --help.
twgpu-map-inspect: View rendered maps in a windowtwgpu-map-photography: Snap pictures of maps via the command linetwgpu-demo-viewer: Demo playertwgpu-encode-demo: Encode demos to images or videos.twgpu-benchmark: A silly and probably not trustworthy sprite rendering benchmark.twgpu-mipmaps: Explore how mipmaps look in twgpu.
Installation
You need Rust installed on your system.
Simply do cargo install twgpu-tools --features ffmpeg
Manual Building
You need Rust installed on your system.
To compile the tools in release mode, execute the following command in this directory:
cargo build --release --features ffmpeg
The executable files will be located in the project/workspace root in target/release/.
To compile the debug build instead, omit the --release flag.
Note that debug binaries will be significantly slower.
The executable files of debug builds will be located in target/debug/.
Trouble Building: Build Errors with FFmpeg?
You need to install FFmpeg on your system.
If you have trouble doing so, leave out the --features ffmpeg.
Note that twgpu-encode-demo won't be able to encode videos in that case.