Replies: 1 comment
-
After internal talks, the better approach seems to be to replace every WGSL constant with slots. const baseWidth = tgpu.slot<number>(12);
const padding = tgpu.slot<number>(2);
const width = tgpu.slot(() => baseWidth.value + 2 * padding.value); |
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.
-
Typed WGSL:
TGSL:
Beta Was this translation helpful? Give feedback.
All reactions