Giter VIP home page Giter VIP logo

Comments (7)

dparnell avatar dparnell commented on June 7, 2024

It looks like the plugin does not currently understand binding_array I will take a look at the parser definition and see what else has changed recently.

from intellij-wgsl.

dparnell avatar dparnell commented on June 7, 2024

According to the wgsl spec binding_array is a reserved word and must not appear in wsgl source code.

from intellij-wgsl.

jaakkojakara avatar jaakkojakara commented on June 7, 2024

Thanks for checking this, so binding_array is actually a feature in wgpu flavour of wgsl, where it is used as a frontend for naga and subsequently transpiled to some other shader format depending on the platform.

The reason it is a reserved keyword in webgpu spec is actually because wgpu project asked for that, so that it is clear it's not supported in web flavour of wgsl. See this PR: gpuweb/gpuweb#2794

One question I guess is does this plugin aim to support wgsl files written for wgpu? For context, I did a quick and dirty search on GitHub on projects that contain .wgsl files, and seems that most of them are written for wgpu, so at least currently it seems to be a major use case for wgsl language.

edit: FWIW, seems that wgsl-plugin for vscode does support it: wgsl-analyzer/wgsl-analyzer#24

from intellij-wgsl.

dparnell avatar dparnell commented on June 7, 2024

I use the plugin for wgpu stuff also. I can add it in without too much hassle.

from intellij-wgsl.

dparnell avatar dparnell commented on June 7, 2024

I have just submitted a new release to the Jetbrains store with support for binding_array. It can take a couple of days for them to process the new release.

from intellij-wgsl.

dparnell avatar dparnell commented on June 7, 2024

The updated plugin should be available in the Jetbrains store now. let me know if this fixes your issue.

from intellij-wgsl.

jaakkojakara avatar jaakkojakara commented on June 7, 2024

Updated the plugin and everything works now, thank you so much!

from intellij-wgsl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.