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

False positive: baby/be in wgsl shaders #1103

Open
bbb651 opened this issue Sep 29, 2024 · 2 comments
Open

False positive: baby/be in wgsl shaders #1103

bbb651 opened this issue Sep 29, 2024 · 2 comments

Comments

@bbb651
Copy link

bbb651 commented Sep 29, 2024

The issue appears in iced with wgsl shaders here and here.

In general, using any sequence of r, g, b, a up to ~4 characters appears commonly in shaders with swizzling.

@epage
Copy link
Collaborator

epage commented Sep 30, 2024

As there are workarounds for this and this seems fairly specialized of a domain, I wonder if we should leave this to users to take care of.

@bbb651
Copy link
Author

bbb651 commented Sep 30, 2024

I think dealing with just the most common ones is worthwhile, e.g. ba specifically seems to be used a lot (1.4k results with a very conservative query just for shaders), because it's both the second half of rgba, and it's also used a lot for b - a with vectors (along with cb, pa, oa).

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