Skip to content

Help make the extensions Marketplace better for everyone. Take this survey!

| Marketplace
Sign in
Visual Studio Code>Programming Languages>WGSL LiteralNew to Visual Studio Code? Get it now.
WGSL Literal

WGSL Literal

ggsimm

|
2,092 installs
| (0) | Free
Syntax highlighting for wgsl inside of JavaScript tagged template strings
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-wgsl-literal

Adds WGSL syntax highlighting for JavaScript template literals.

Requirements

  • Install the WGSL Extension

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);
  }
`;

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft