-
-
Notifications
You must be signed in to change notification settings - Fork 125
chore: Add type checks to std #2863
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
Merged
+677
−98
Merged
Changes from all commits
Commits
Show all changes
79 commits
Select commit
Hold shift + click to select a range
7d95880
POC
aleksanderkatan b3edb44
Add type verification
aleksanderkatan 20caf75
Update sqrt
aleksanderkatan 2b8a614
Update trigo functions
aleksanderkatan 369a70f
Remove remaining simple unary ops
aleksanderkatan 998783e
Support matrices, remove remaining unary calls from vectorOps
aleksanderkatan 14e08f8
Add binary op
aleksanderkatan 2eeda52
Add verifyEqualTypes
aleksanderkatan e616432
Allow for upcasts
aleksanderkatan 4407a2a
Rewrite simple component-wise ops
aleksanderkatan 6119404
Add boolean mode
aleksanderkatan c7d4704
Simplify binary vector ops
aleksanderkatan a270fe8
Remove normalize from vectorOps
aleksanderkatan ce3a45a
Accept an array of arguments
aleksanderkatan a228ea2
Extract upcast, change mode to enum
aleksanderkatan 7fcdf91
Prepare binaryuniformInput for generalization
aleksanderkatan 96719fa
Make generalization work with any arity (except for types)
aleksanderkatan b45101a
Remove unary generalization
aleksanderkatan fd1fb88
Cleanup
aleksanderkatan 5a99b4e
Add overload for 3 values
aleksanderkatan 4144e69
Rename to generalizeFn
aleksanderkatan 75374f9
Remove mix from vectorOps
aleksanderkatan 46e52f0
Remove select from vectorOps
aleksanderkatan 8c54d6a
Remove bitcasts from vectorOps
aleksanderkatan 8ef19c5
Remove remaining simple vector ops
aleksanderkatan d4d56c0
Clean up vector ops imports
aleksanderkatan 40cf5de
Clean up vectorOps2 types
aleksanderkatan 2857f03
Fix test
aleksanderkatan 446e12d
Cleanup
aleksanderkatan 779007e
Generalize verifyKind for multiple arguments
aleksanderkatan 50966bc
Refactor generalizeFn.ts
aleksanderkatan 3367a2e
Simplify types
aleksanderkatan 88423ed
Simplify types
aleksanderkatan a2dd774
Simplify types even further
aleksanderkatan 080788a
More cleanup
aleksanderkatan c3a3a00
Remove type verification
aleksanderkatan a953c5a
Update snapshot
aleksanderkatan 9b5e1eb
Merge remote-tracking branch 'origin/main' into impr/clean-up-vectorops
aleksanderkatan 0348be6
Revert "Remove type verification"
aleksanderkatan cd13b03
Update existing tests to handle throws
aleksanderkatan 6f63e19
Cleanup divInteger
aleksanderkatan 2ca23b7
Revert bitcasts
aleksanderkatan cf3e123
Fix isCloseTo
aleksanderkatan cfee895
Revert changes to isCloseTo
aleksanderkatan 991c5c1
nr fix
aleksanderkatan 3ee701a
Update bitcasts
aleksanderkatan 8c2528f
Update boolean
aleksanderkatan e7257d9
Update numeric
aleksanderkatan dd92b46
Update operators
aleksanderkatan c302ecc
Update generalizeFn
aleksanderkatan eee7d6a
Add some coverage tests
aleksanderkatan 9d5a33b
Add missing std tests
aleksanderkatan 590690b
Add select tests
aleksanderkatan abff7c2
Update snapshots
aleksanderkatan 9adf8fe
Inline matrix error
aleksanderkatan 2ffcd6d
Change errors to wgslTypeErrors
aleksanderkatan 99ee430
Simplify cpuNot
aleksanderkatan 9d8e65d
Generalize all
aleksanderkatan 7e62cc6
Rename kinds
aleksanderkatan 4d7a044
Update error messages
aleksanderkatan 78fffbb
nr fix
aleksanderkatan 68fe2a1
🔧
aleksanderkatan a3691fb
Merge branch 'impr/clean-up-vectorops' into chore/add-type-checks-to-std
aleksanderkatan 8f4a717
Merge branch 'main' into impr/clean-up-vectorops
aleksanderkatan 3ff3d40
Fix normalize
aleksanderkatan bfa48f5
Remove array creation from applyArgs
aleksanderkatan 5e5d55f
🦖
aleksanderkatan cf118e2
Fix scalar handling
aleksanderkatan 7611d7e
Remove unused kind sets
aleksanderkatan 9c678a8
Add mul kind verification
aleksanderkatan a714625
nr fix
aleksanderkatan 84667d0
Merge branch 'impr/clean-up-vectorops' into chore/add-type-checks-to-std
aleksanderkatan d4631b8
Merge remote-tracking branch 'origin/main' into chore/add-type-checks…
aleksanderkatan bd78da4
Update error messages
aleksanderkatan 3dca480
Update packages/typegpu/src/data/generalizeFn.ts
aleksanderkatan cdd64a1
Merge remote-tracking branch 'origin/main' into chore/add-type-checks…
aleksanderkatan 03ffb32
Update snapshots
aleksanderkatan b9be3a4
Merge branch 'main' into chore/add-type-checks-to-std
aleksanderkatan 8d57e9f
Rename verify functions to assert
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.
Uh oh!
There was an error while loading. Please reload this page.