Conversation
|
pkg.pr.new packages benchmark commit |
📊 Bundle Size Comparison
👀 Notable resultsStatic test results:No major changes. Dynamic test results:No major changes. 📋 All resultsClick to reveal the results table (348 entries).
If you wish to run a comparison for other, slower bundlers, run the 'Tree-shake test' from the GitHub Actions menu. |
There was a problem hiding this comment.
Pull request overview
This PR adjusts TypeGPU’s function type inference so that function “shell” implementations are typed using GPU-visible representations (InferGPU) rather than host representations (Infer), aligning implementation signatures with what the shader codegen expects.
Changes:
- Replace
InferwithInferGPUinTgpuFnShellimplementation typing. - Update
InferArgs,InferImplSchema, andInferIOto infer GPU-side representations.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
packages/typegpu/src/core/function/tgpuFn.ts |
Updates the function shell’s implementation callback typing to return InferGPU<Return>. |
packages/typegpu/src/core/function/fnTypes.ts |
Switches argument/return inference helpers (and InferIO) to use InferGPU consistently. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
31062ee to
0af8426
Compare
0af8426 to
be1b20f
Compare
Uh oh!
There was an error while loading. Please reload this page.