Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with override and "/" #58

Open
alienself opened this issue Sep 18, 2024 · 1 comment
Open

Issue with override and "/" #58

alienself opened this issue Sep 18, 2024 · 1 comment

Comments

@alienself
Copy link

Hi there!

I am encountering an issue with WGSL's override feature in the following code snippet:

override AP_SLICE_COUNT: f32 = 32.0;
override AP_DISTANCE_PER_SLICE: f32 = 4.0;

override AP_INV_DISTANCE_PER_SLICE: f32 = 1.0 / AP_DISTANCE_PER_SLICE; // <--- HERE

The error message I receive is: "Expected ';'". It appears that the issue arises when attempting to define an override based on the value of an existing override. It seems the library is having trouble handling this dependency.

@brendan-duncan
Copy link
Owner

I pushed a git update to that fixes this issue. I still need to do more testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants