You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Expected type stack in WgslGenerator (#1532)
* Add struct default constructor
* Update docs
* Update packages/typegpu/tests/struct.test.ts
Co-authored-by: Iwo Plaza <[email protected]>
* Update packages/typegpu/src/tgsl/wgslGenerator.ts
Co-authored-by: Konrad Reczko <[email protected]>
* Change [1] to [0]
* Make array schemas callable (but they do nothing)
* Move the struct resolve test to wgslGenerator.test.ts
* Move tests back to struct.test.ts
* Add array tests
* Implement JS side of array calls
* Implement WGSL side
* Change u32 to i32
* Add tgsl parsing tests
* Remove unnecessary (I hope so) parentheses
* Docs
* Lint
* Fix import
* Lint
* Nits
* Remove generic from struct constructor, update docs
* Apply suggestions from code review
Co-authored-by: Iwo Plaza <[email protected]>
* Update array toString, override dualImpl toString
* Add some tests
* Add expectedTypeStack
* Use expectedTypeStack in struct call
* Use expectedTypeStack for returns and nested structs
* Remove callStack from return value generation, comment out some weird tests
* Remove the arbitrary object cast to output type
* CallStack is kil
* Remove legacy calls to stack from tgpuFn
* Remove legacy calls from fragmentFn and tgpuFn
* Add array support
* Add type coercion, apply type coercion to return value
* Merge fixes
* Move struct/array handling
* Cleanup struct/array call
* Refactor
* Add function support
* Add bool to the stack for if/for/while conditions
* Bring back commented test 1
* Bring back commented tests 2 & 3
* Refactor array generation, add better comments
* Rename `argTypes` to `argConversionHint`
* Remove UnknownData from stack type
* Docs for expectedTypeStack
* Lint
* Update error messages
* Nits
* Better convert to null message
* Update tests to still create Output structs before return statement
* Unify type errors
* Simpler tests, review fixes
* Holding the expected type stack... on the stack
* Tweaks
* Review fixes
* Shuffle things around
---------
Co-authored-by: Aleksander Katan <[email protected]>
Co-authored-by: Iwo Plaza <[email protected]>
Co-authored-by: Konrad Reczko <[email protected]>
0 commit comments