Replies: 1 comment
-
|
We could move the simulate mode out of the TypeGPU package into a separate one - this would simplify the runtime logic and makes the most sense imo |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Whenever we create a function that works in both JS and generates shader code, we rely on it to choose behavior based on the context (if codegen mode, then we assume the inputs are snippets and we return a snippet, otherwise we execute the code, for example).
If we instead make direct calls always execute in JS, and store the codegen-impl as a prop, we might be able to make it more performant and intuitive.
Beta Was this translation helpful? Give feedback.
All reactions