An open API service indexing awesome lists of open source software.

https://github.com/polymeilex/vscode-wgsl

VsCode Syntax highlight for WGSL files
https://github.com/polymeilex/vscode-wgsl

vscode-extension webgpu wgpu

Last synced: 2 days ago
JSON representation

VsCode Syntax highlight for WGSL files

Awesome Lists containing this project

README

        

# WGSL Syntax Highlight For Visual Studio Code

![img](https://i.imgur.com/7Z2Rt7s.png)

# Install
- [vscode marketplace](https://marketplace.visualstudio.com/items?itemName=PolyMeilex.wgsl)
- [open vsx registry](https://open-vsx.org/extension/PolyMeilex/wgsl)

# For rust users:

I also created [cargo-wgsl](https://github.com/PolyMeilex/cargo-wgsl) crate that validates your shaders.

Just run `cargo install cargo-wgsl` to install it.

The extension will detect it in the path, and start a validation server for you.

## Autocompletion (only for globals for now)

![img](https://i.imgur.com/wYB29iP.png)

## Real time validation using cargo-wgsl

![gif](https://i.imgur.com/l8d4XPT.gif)

## Cargo-wgsl can also be used as cli:

![img](https://i.imgur.com/mWmNZYS.png)