chargrid_wgpu

Crates.iochargrid_wgpu
lib.rschargrid_wgpu
version0.5.0
sourcesrc
created_at2021-07-04 16:16:45.808543
updated_at2024-02-06 14:07:25.368494
descriptionGraphical chargrid context which renders with wgpu
homepagehttps://github.com/gridbugs/chargrid.git
repositoryhttps://github.com/gridbugs/chargrid.git
max_upload_size
id418651
Stephen Sherratt (gridbugs)

documentation

https://docs.rs/chargrid_wgpu

README

# chargrid\_wgpu [![Version](https://img.shields.io/crates/v/chargrid_wgpu.svg)](https://crates.io/crates/chargrid_wgpu) [![Documentation](https://docs.rs/chargrid_wgpu/badge.svg)](https://docs.rs/chargrid_wgpu) A graphical frontend for chargrid which renders with wgpu. ## Dependencies ### Linux On linux this renders with vulkan. You will need a vulkan loader and vulkan drivers installed in order to run graphical chargrid applications. This often takes the form of a library named "libvulkan.so". If you encounter the following error when running a graphical chargrid application it means you're missing a vulkan dependency: ``` Failed to initialize graphical context: FailedToRequestGraphicsAdapter ``` #### NixOS The following shell.nix creates an environment in which graphical chargrid applications can be built and run: ``` with import {}; pkgs.mkShell { buildInputs = [ gtk3 glib pkgconfig xorg.libX11 vulkan-loader ]; shellHook = '' export LD_LIBRARY_PATH="${vulkan-loader}/lib" ''; } ``` ## Compiling Shaders To simplify building/runnig, pre-compiled shaders are checked into the repo. After changing the shader source, run the `compile-shaders.sh` script to update the compiled shaders. This script depends on the [shader-translator](https://crates.io/crates/shader-translator) tool. ``` cargo install shader-translator ./compile-shaders.sh ```
Commit count: 1090

cargo fmt