Skip to content

Commit 900523d

Browse files
committed
Make the HAL object also inherit a label.
1 parent dd93ed5 commit 900523d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

wgpu-core/src/device/queue.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,6 +1465,8 @@ impl Queue {
14651465
profiling::scope!("Queue::compact_blas");
14661466
api_log!("Queue::compact_blas");
14671467

1468+
let new_label = blas.label.clone() + " (compacted)";
1469+
14681470
self.device.check_is_valid()?;
14691471
self.same_device_as(blas.as_ref())?;
14701472

@@ -1486,7 +1488,7 @@ impl Queue {
14861488
device
14871489
.raw()
14881490
.create_acceleration_structure(&hal::AccelerationStructureDescriptor {
1489-
label: None,
1491+
label: hal_label(Some(&new_label), device.instance_flags),
14901492
size: size_info.acceleration_structure_size,
14911493
format: hal::AccelerationStructureFormat::BottomLevel,
14921494
allow_compaction: false,
@@ -1528,7 +1530,7 @@ impl Queue {
15281530
// Bypass the submit checks which update this because we don't submit this normally.
15291531
built_index: RwLock::new(rank::BLAS_BUILT_INDEX, Some(built_index)),
15301532
handle,
1531-
label: blas.label.clone() + " compacted",
1533+
label: new_label,
15321534
tracking_data: TrackingData::new(blas.device.tracker_indices.blas_s.clone()),
15331535
compaction_buffer: None,
15341536
compacted_state: Mutex::new(rank::BLAS_COMPACTION_STATE, BlasCompactState::Compacted),

0 commit comments

Comments
 (0)