Replies: 2 comments 4 replies
-
I like this idea. I think this is better than populate in many ways. I don't understand the need to have it on root instead of tgpu like the layout creation? I don't think it's needed at the time of creation and could introduce confusion (due to the fact that layouts are made via tgpu and bind groups are not). |
Beta Was this translation helpful? Give feedback.
4 replies
-
I think that's a good idea! 💡 |
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
-
layout.populate
was always an API that did not really match with the other APIs. With the recent merge of DDD, and moving away from methods on objects in favor of functions operating on data, I would propose the following:Advantages
This change will allow TypeGPU to import bind group layouts defined in WESL, and use them just as well as native ones.
Adoption
root.createBindGroup
API..populate
Beta Was this translation helpful? Give feedback.
All reactions