#gui #wgpu

kas-wgpu

KAS GUI / wgpu front-end

13 releases (8 breaking)

new 0.9.0 Aug 3, 2021
0.8.1 Jun 21, 2021
0.7.0 Apr 3, 2021
0.6.0 Nov 25, 2020
0.1.0 Dec 22, 2019

#90 in GUI

Download history 38/week @ 2021-04-14 9/week @ 2021-04-21 18/week @ 2021-04-28 7/week @ 2021-05-05 13/week @ 2021-05-12 1/week @ 2021-05-19 4/week @ 2021-05-26 5/week @ 2021-06-02 14/week @ 2021-06-09 39/week @ 2021-06-16 7/week @ 2021-06-23 7/week @ 2021-06-30 3/week @ 2021-07-07 18/week @ 2021-07-14 8/week @ 2021-07-21 45/week @ 2021-07-28

51 downloads per month

Apache-2.0

1MB
21K SLoC

KAS WGPU

KAS shell interface over winit and wgpu.

Compiling shaders

This library uses GLSL shaders. Pre-compiled SPIR-V modules are distributed so that users do not need a shader compiler.

For working on GLSL shaders, a compiler such as glslc (part of the shaderc project) is required. glslc can be installed from Fedora packages, but on other platforms manual installation may be required. Alternatively a web-based tool such as glslang.js may be used.

Automatic re-compilation may be enabled by setting e.g. SHADERC=glslc. See build.rs for details.

Optional features

This crate has the following feature flags:

  • clipboard (enabled by default): clipboard integration
  • raster (enabled by default): use [kas-text]'s default backend for glyph rastering (alternatively, specify kas-text/ab_glyph or kas-text/fontdue)
  • shaping (enabled by default): use [kas-text]'s default backend (Rustybuzz) for text shaping (alternatively, specify kas-text/harfbuzz or do not use shaping)
  • stack_dst (enabled by default): enables kas-theme::MultiTheme
  • gat: enables usage of the Generic Associated Types feature (nightly only and currently unstable), allowing some usages of unsafe to be avoided. (The plan is to enable this by default once the feature is mature.)
  • unsize: forwards this feature flag to kas-theme

Note: at least one of ab_glyph, fontdue is required. If both are enabled, the choice of raster engine is controlled at run-time via theme configuration:

  • mode = 0: use ab_glyph
  • mode = 1: use ab_glyph and align glyphs to side-bearing
  • mode = 2: use fontdue

Copyright and Licence

The COPYRIGHT file includes a list of contributors who claim copyright on this project. This list may be incomplete; new contributors may optionally add themselves to this list.

The KAS library is published under the terms of the Apache License, Version 2.0. You may obtain a copy of this licence from the LICENSE file or on the following webpage: https://www.apache.org/licenses/LICENSE-2.0

Dependencies

~9–16MB
~312K SLoC