Replies: 1 comment
-
I like this approach, seems intuitive 👍 |
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
-
Using builtins in typed WGSL functions is simple, as we do not need to provide any mechanism to access them in code. For TGSL functions, this becomes trickier. Right now, to use builtins, users can call them directly in the function body, and it will be ✨ automagically ✨ added to the argument list of the function. There are a few pitfalls and complexities that come with it though:
@builtin(position)
exists and acts like a builtin input into the fragment shader, which means when a dev usesbuiltin.position
in a fragment shader, we have to dedup that use.Proposed solution
Beta Was this translation helpful? Give feedback.
All reactions