Skip to content

Major mode for WGSL with Bevy's naga-oil extension

License

Notifications You must be signed in to change notification settings

jatimix/wgsl-bevy-ts-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Emacs tree-sitter support for the WebGPU Shading Language (WGSL) with additionnal support for Naga OIL (Bevy) extension naga-oil

providing syntax highlighting, indenting and navigation.

Installation

In order to use this mode, you must arrange that the [tree-sitter-bevy-wgsl grammar] (https://github.com/jatimix/tree-sitter-wgsl-bevy) is available.

Installing tree-sitter for emacs

  • Emacs 29+

Follow section on installing grammars as part of a helpful article on getting started with tree-sitter in emacs that will likely be of use.

But as a rule of thumbs on linux-*:

  • Build grammar lib
  • sudo cp libtreesitter* /usr/local/lib
  • sudo ldconfig
  • Should work

Contributions

Welcome.

About

Major mode for WGSL with Bevy's naga-oil extension

Resources

License

Stars

Watchers

Forks