You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both GPURenderPassEncoder and GPUComputePassEncoder have .end() methods, and they're not supposed to be used after calling end.
JS doesn't have an ownership model so there's no way to enforce that it's never used again on a type level, but since wit does have an ownership model should we make end take ownership?
The text was updated successfully, but these errors were encountered:
MendyBerger
changed the title
Open question: Should end methos take ownership?
Open question: Should end methods take ownership?
Apr 19, 2024
This is not what the standard does, but is needed for the current implementation. Should be removed eventually.
Also made end take ownership of self, in accordance with #9. But should be changed back if we decide not to take that route.
Both GPURenderPassEncoder and GPUComputePassEncoder have
.end()
methods, and they're not supposed to be used after calling end.JS doesn't have an ownership model so there's no way to enforce that it's never used again on a type level, but since wit does have an ownership model should we make end take ownership?
The text was updated successfully, but these errors were encountered: