-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Remove IDs and Registries #5121
Copy link
Copy link
Open
Labels
kind: refactorMaking existing function faster or nicerMaking existing function faster or nicertype: enhancementNew feature or requestNew feature or requesttype: trackingNot a bug or an enhancementNot a bug or an enhancement
Metadata
Metadata
Assignees
Labels
kind: refactorMaking existing function faster or nicerMaking existing function faster or nicertype: enhancementNew feature or requestNew feature or requesttype: trackingNot a bug or an enhancementNot a bug or an enhancement
Type
Projects
Status
Todo
This is a meta issue to describe the long-ish term vision for wgpu-core's resource management and track the steps towards it.
Registries and IDs
Internally, all wgpu-core resources are stored behind
Arcs. Externally, they are exposed as non-clonable structs containing an ID which conceptually corresponds to a single reference to theArcof a resource.The goal
Instead of having wgpu public types wrap a non-clonabe ID, we would like them to wrap the
Arcto the internal resource directly (and be clonable).TODO
tracefeature) towgpu#5974ErrorSinkintowgpu-core#8911wgpu-corepart of command recording out of the content processGlobal's methods into methods on wgpu-core objectsOther Related Issues
finish()#8234