Comments (8)
I also verified this issue has been resolved, thank you!
from wgsl_reflect.
I'll get it fixed up shortly.
from wgsl_reflect.
What problem are you seeing?
from wgsl_reflect.
This is strange. On my work laptop, I simply pasted the code between the comments "//######" into your test page:
https://brendan-duncan.github.io/wgsl_reflect/example.html
And it produced errors. On my home MBP, it's not happening. Let me try again on my other laptop and I'll paste the error.
from wgsl_reflect.
highlightOverRangeColors.txt
Try pasting the contents of this file into here:
https://brendan-duncan.github.io/wgsl_reflect/example.html
You'll see this error:
"Expected ';' after statement. Line 3. Found: '='."
from wgsl_reflect.
Thanks, I can repo it now. Very strange, but I'll get it sorted out.
from wgsl_reflect.
Figured out the issue, just have to find a solution. I have code in the scanner that tries to disambiguate >=
between being a greater-equal
or closing of a template followed by equals
, as in a >= b
from vec2<bool> = b
.
Your code found the hole in my logic. var cEdgeBool : vec3<bool> = c3 >= vec3<f32>(1.0);
makes the scanner think >
in >=
is a template close and it's getting split into >
followed by =
.
Back to the drawing board. Just have to make that logic a bit more robust.
from wgsl_reflect.
The function is parsing now.
from wgsl_reflect.
Related Issues (20)
- Failed to handle numeric literals with suffix HOT 3
- Failed to handle value constructor in module scope HOT 2
- Support for arrays of arrays and other stuff HOT 10
- Support for unsized arrays of arrays HOT 4
- Add strict mode HOT 2
- Can't get storage buffer's access mode HOT 3
- Support for var usage by entry HOT 7
- parse diagnostic directives HOT 1
- const can be declared after it's use HOT 1
- Get unused members HOT 10
- Bug: storage buffer resource missing from entry when writing only (no reading) HOT 6
- parse non-global @diagnostic HOT 1
- Performance issues on medium-sized shaders (> 500+ line of code) HOT 8
- Error with new WGSL "enable" and "requires" directives HOT 3
- why there is no sampler info in reflection information HOT 2
- Resources not included in reflection if used directly as array index HOT 3
- Can't process "]]" HOT 3
- Documentation bug? HOT 2
- Token error in minified shaders HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wgsl_reflect.