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
Ids are made available for recycling from ResourceInfo::drop, or in other words, when a wgpu-coreTexture, CommandBuffer, etc. is dropped.
It works fine in most cases because the registry holds arcs to the resources themselves. There is one case where it breaks: when we submit command buffers, they are replaced by placeholders in the registry that don't maintain the ResourceInfo alive. The ResourceInfo is then dropped before we get to remove the resource from the registry, allowing another CommandBuffer to be placed at the same index before we clear the slot of the previous one.
Ids are made available for recycling from
ResourceInfo::drop
, or in other words, when awgpu-core
Texture
,CommandBuffer
, etc. is dropped.It works fine in most cases because the registry holds arcs to the resources themselves. There is one case where it breaks: when we submit command buffers, they are replaced by placeholders in the registry that don't maintain the
ResourceInfo
alive. TheResourceInfo
is then dropped before we get to remove the resource from the registry, allowing another CommandBuffer to be placed at the same index before we clear the slot of the previous one.See also my ramblings in #5141
The text was updated successfully, but these errors were encountered: