We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e273ff5 commit 8794e16Copy full SHA for 8794e16
1 file changed
ngsolve_webgpu/geometry.py
@@ -238,7 +238,7 @@ def update(self, options):
238
self.thickness_uniform = uniform_from_array(np.array([self.thickness], dtype=np.float32))
239
n_regions = max(self.n_instances, 1)
240
self._selection = np.zeros(n_regions, dtype=np.uint32)
241
- self._buffers["selection"] = buffer_from_array(self._selection)
+ self._buffers["selection"] = buffer_from_array(self._selection, reuse=self._buffers.get("selection"))
242
self.shader_defines["HAS_SELECTION"] = "1"
243
244
def get_bindings(self):
0 commit comments