Crates.io | chargrid_wgpu |
lib.rs | chargrid_wgpu |
version | 0.5.0 |
source | src |
created_at | 2021-07-04 16:16:45.808543 |
updated_at | 2024-02-06 14:07:25.368494 |
description | Graphical chargrid context which renders with wgpu |
homepage | https://github.com/gridbugs/chargrid.git |
repository | https://github.com/gridbugs/chargrid.git |
max_upload_size | |
id | 418651 |
size | 63,036 |
A graphical frontend for chargrid which renders with wgpu.
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
The following shell.nix creates an environment in which graphical chargrid applications can be built and run:
with import <nixpkgs> {};
pkgs.mkShell {
buildInputs = [
gtk3 glib
pkgconfig
xorg.libX11
vulkan-loader
];
shellHook = ''
export LD_LIBRARY_PATH="${vulkan-loader}/lib"
'';
}
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 tool.
cargo install shader-translator
./compile-shaders.sh