Skip to content

gsimone/vscode-wgsl-literal

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vscode-wgsl-literal

Adds WGSL syntax highlighting for JavaScript template literals.

Requirements

Example

const vert = /* wgsl */`
  struct FragmentInput {
    [[location(0)]] Color: vec3<f32>;
  };

  [[stage(fragment)]]
  fn main(input: FragmentInput) -> [[location(0)]] vec4<f32> {
    return vec4<f32>(input.Color, 1.0);
  }
`;

About

Syntax highlighting for WGSL inside JavaScript tagged template strings

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published