From 6db9ceede18681c9749ad2fd1436ba80a4c63d3b Mon Sep 17 00:00:00 2001 From: teoxoy <28601907+teoxoy@users.noreply.github.com> Date: Tue, 25 Jun 2024 11:45:02 +0200 Subject: [PATCH] inline `pipeline.as_info().id()` --- wgpu-core/src/command/compute.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wgpu-core/src/command/compute.rs b/wgpu-core/src/command/compute.rs index e4831bdb0..19dd1b0da 100644 --- a/wgpu-core/src/command/compute.rs +++ b/wgpu-core/src/command/compute.rs @@ -630,12 +630,11 @@ impl Global { } } ArcComputeCommand::SetPipeline(pipeline) => { - let pipeline_id = pipeline.as_info().id(); - let scope = PassErrorScope::SetPipelineCompute(pipeline_id); + let scope = PassErrorScope::SetPipelineCompute(pipeline.as_info().id()); pipeline.same_device_as(cmd_buf).map_pass_err(scope)?; - state.pipeline = Some(pipeline_id); + state.pipeline = Some(pipeline.as_info().id()); let pipeline = tracker.compute_pipelines.insert_single(pipeline);