-
-
Notifications
You must be signed in to change notification settings - Fork 72
fix: Restrict using slot for strings #2700
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
Open
aleksanderkatan
wants to merge
52
commits into
main
Choose a base branch
from
fix/restrict-using-slot-for-strings
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 49 commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
669e47f
Remove setName from mergeExternals
aleksanderkatan 692ac90
Name unnamed externals in propAccess and getById
aleksanderkatan a944c60
Limit tgpuDeclare to one external
aleksanderkatan 754eb92
Remove unnecessary merge from tgpuResolve
aleksanderkatan a217940
Limit rawCodeSnippet to one $uses
aleksanderkatan 1f8bccb
Add FnExternals, and throw if $uses is called multiple times
aleksanderkatan b0ec447
Prepare string-implemented functions for external swap
aleksanderkatan 236075c
Finish replacing old externals with new externals && cleanup
aleksanderkatan 7c7faad
More cleanup
aleksanderkatan a03b83f
Detect $uses on function with plugin metadata earlier
aleksanderkatan 1a16a8b
Add FnExternals docs
aleksanderkatan 9f33691
Add external name collision tests
aleksanderkatan 052f36b
Add more tests & fix fragment out external
aleksanderkatan 5ec7052
More tests && allow redundant external
aleksanderkatan 54b8b27
Update docs
aleksanderkatan d7d48ae
Add compute tests
aleksanderkatan fc8b147
Move external tests to external.test.ts
aleksanderkatan cfb074a
Fix old external tests by tweaking the api
aleksanderkatan 5b26ee6
nr fix
aleksanderkatan 312f78d
Merge branch 'main' into fix/forbid-multiple-uses
aleksanderkatan 29b0354
self-review fixes
aleksanderkatan f9a4385
Fix multiple .$uses error
aleksanderkatan 741af47
Merge branch 'main' into fix/forbid-multiple-uses
aleksanderkatan a7abca9
Initial rewrite
aleksanderkatan b0b5472
Add an end of chain test
aleksanderkatan ca3e9e1
Simplify end of chain tracking
aleksanderkatan 48727bb
Update snapshots
aleksanderkatan e346c8e
Update declare tests
aleksanderkatan 4974305
Remove warn test
aleksanderkatan 65fcedf
Simplify regex
aleksanderkatan 38a0643
Update packages/typegpu/src/core/resolve/externals.ts
aleksanderkatan 960994b
Merge remote-tracking branch 'origin/main' into fix/external-traversa…
aleksanderkatan f969d37
Simplify naming
aleksanderkatan 73dc847
Remove cache
aleksanderkatan 4573395
Merge remote-tracking branch 'origin/main' into fix/external-traversa…
aleksanderkatan a5d2b0a
Copilot review fixes
aleksanderkatan a9da9a7
Merge remote-tracking branch 'origin/main' into fix/external-traversa…
aleksanderkatan 1acd191
Merge branch 'main' into fix/external-traversal-for-raw-wgsl-implemen…
aleksanderkatan cb6c68f
Merge remote-tracking branch 'origin/main' into fix/external-traversa…
aleksanderkatan 10e93da
Add some regex tests
aleksanderkatan c6bc427
Add tests
aleksanderkatan 7ee8f2d
Throw in raw-wgsl case
aleksanderkatan f09f85c
fix: Don't treat strings as resolvable
iwoplaza 049e477
Fix the resolvable check
aleksanderkatan 737c910
Update tgsl tests
aleksanderkatan 44bab90
Move rawfn tests
aleksanderkatan a63b41f
Add ResolvableString and forbid strings in raw fn
aleksanderkatan e4c4757
lint & types
aleksanderkatan c0d3132
lint
aleksanderkatan 34ae441
Fix import
aleksanderkatan 3d934c9
Review fixes
aleksanderkatan 83271c4
Merge remote-tracking branch 'origin/main' into fix/restrict-using-sl…
aleksanderkatan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like we could use a raw code snippet here, instead of creating a new
ResolvableStringtype