From a61c872269ef1a1aeb481a5cc9dab7b4bc35f5a3 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Mon, 15 Apr 2024 13:02:55 -0700 Subject: [PATCH] [core] Rename `com_alloc` to `command_allocator` in `Device::new`. --- wgpu-core/src/device/resource.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wgpu-core/src/device/resource.rs b/wgpu-core/src/device/resource.rs index b8cca0ba6..c2a0c0b56 100644 --- a/wgpu-core/src/device/resource.rs +++ b/wgpu-core/src/device/resource.rs @@ -223,8 +223,8 @@ impl Device { let fence = unsafe { raw_device.create_fence() }.map_err(|_| CreateDeviceError::OutOfMemory)?; - let com_alloc = command::CommandAllocator::new(); - let pending_encoder = com_alloc + let command_allocator = command::CommandAllocator::new(); + let pending_encoder = command_allocator .acquire_encoder(&raw_device, raw_queue) .map_err(|_| CreateDeviceError::OutOfMemory)?; let mut pending_writes = queue::PendingWrites::::new(pending_encoder); @@ -269,7 +269,7 @@ impl Device { queue_to_drop: OnceCell::new(), zero_buffer: Some(zero_buffer), info: ResourceInfo::new("", None), - command_allocator: com_alloc, + command_allocator, active_submission_index: AtomicU64::new(0), fence: RwLock::new(Some(fence)), snatchable_lock: unsafe { SnatchLock::new() },