-
Does anyone know what the most efficient way of swapping bind group resources would be? I'm looking to swap out a texture resource in a bind group. Aside from updating the existing resource in GPU memory with new data, I assume I'll need to create a new bind group any time I want to change the bound texture? If so, is there any plan to provide a method for updating existing bindings in the future (aka vkUpdateDescriptorSets)? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Looks like I may have found an answer - gpuweb/gpuweb#915. Long story short, it sounds like the overhead to creating bind groups on the fly should be minimal, as the implementation should be able to use some kind of caching under the hood to achieve this via Also sounds like there's a proposal to introduce a |
Beta Was this translation helpful? Give feedback.
Looks like I may have found an answer - gpuweb/gpuweb#915.
Long story short, it sounds like the overhead to creating bind groups on the fly should be minimal, as the implementation should be able to use some kind of caching under the hood to achieve this via
vkUpdateDescriptorSets
(in the case of Vulkan), although I'm unclear as to whether this implementation actually does.Also sounds like there's a proposal to introduce a
BindGroupArena
to manage these kinds of dynamic bind groups - #888