mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 05:51:03 +01:00
refactor(core): Rename HUB_OTHER lock rank to INSTANCE_DEVICES
This commit is contained in:
1 parent
5e7afdf25b
commit
0770264ea0
2 files changed
+4
-4
No files matched your search
@@ -42,7 +42,7 @@ impl Default for InstanceDevices {
|
||||
|
||||
impl InstanceDevices {
|
||||
pub(crate) fn new() -> Self {
|
||||
Self(Mutex::new(rank::HUB_OTHER, WeakVec::new()))
|
||||
Self(Mutex::new(rank::INSTANCE_DEVICES, WeakVec::new()))
|
||||
}
|
||||
|
||||
pub(crate) fn push(&self, device: &Arc<Device>) {
|
||||
|
||||
@@ -113,7 +113,7 @@ define_lock_ranks! {
|
||||
BUFFER_POOL,
|
||||
DEVICE_TRACE,
|
||||
DEVICE_USAGE_SCOPES,
|
||||
HUB_OTHER,
|
||||
INSTANCE_DEVICES,
|
||||
SHARED_TRACKER_INDEX_ALLOCATOR_INNER,
|
||||
}
|
||||
rank DEVICE_SNATCHABLE_LOCK "Device::snatchable_lock" followed by {
|
||||
@@ -128,7 +128,7 @@ define_lock_ranks! {
|
||||
BUFFER_POOL,
|
||||
DEVICE_TRACE,
|
||||
DEVICE_USAGE_SCOPES,
|
||||
HUB_OTHER,
|
||||
INSTANCE_DEVICES,
|
||||
SHARED_TRACKER_INDEX_ALLOCATOR_INNER,
|
||||
TEXTURE_BIND_GROUPS,
|
||||
TEXTURE_CLEAR_MODE,
|
||||
@@ -175,7 +175,7 @@ define_lock_ranks! {
|
||||
rank COMMAND_ALLOCATOR_FREE_ENCODERS "CommandAllocator::free_encoders" followed by {
|
||||
SHARED_TRACKER_INDEX_ALLOCATOR_INNER,
|
||||
}
|
||||
rank HUB_OTHER "Hub (general)" followed by {
|
||||
rank INSTANCE_DEVICES "InstanceDevices" followed by {
|
||||
}
|
||||
|
||||
// Leaf ranks reachable from the graph above, alphabetical.
|
||||
|
||||
Reference in new issue
Block a user