app glasgow

Language Server for WGSL (WebGPU Shading Language)

11 releases

0.3.1 Aug 24, 2024
0.3.0 Aug 1, 2024
0.2.3 Aug 1, 2024
0.2.1 Jul 20, 2024
0.1.4 Jul 20, 2024
Download history 357/week @ 2024-07-15 59/week @ 2024-07-22 279/week @ 2024-07-29 26/week @ 2024-08-05 14/week @ 2024-08-12 129/week @ 2024-08-19 34/week @ 2024-08-26 7/week @ 2024-09-02 4/week @ 2024-09-09 24/week @ 2024-09-16 19/week @ 2024-09-23 30/week @ 2024-09-30 12/week @ 2024-10-07 10/week @ 2024-10-14 2/week @ 2024-10-21

55 downloads per month

Custom license

285KB
7.5K SLoC

glasgow

A Language Server for WGSL (WebGPU Shading Language)

Features

  • Completions:
    • Local functions/variables/types.
    • Fields and swizzles.
    • Builtin types and functions (dot, reflect, textureSample, vec3, mat4x2, etc.)
  • Hover Documentation:
    • Function signatures.
    • Variable types.
    • Includes builtin types and functions. Text is taken from the WGSL specification.
  • Goto Definition
  • Find all References
  • Rename
  • Formatter

Planned

  • Support for non-standard #include/#import directives.

Usage

First install the language server using cargo:

cargo install glasgow

Then follow the editor-specific instructions below:

Visual Studio Code

Install the glasgow extension from the marketplace.

neovim

First, install nvim-lspconfig.

Then it is as simple as enabling the glasgow configuration:

local lspconfig = require 'lspconfig'
lspconfig.glasgow.setup {}

Dependencies

~10–18MB
~230K SLoC