mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 14:55:05 +00:00
inline pipeline.as_info().id()
This commit is contained in:
parent
fb60aa86c3
commit
6db9ceede1
@ -630,12 +630,11 @@ impl Global {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
ArcComputeCommand::SetPipeline(pipeline) => {
|
ArcComputeCommand::SetPipeline(pipeline) => {
|
||||||
let pipeline_id = pipeline.as_info().id();
|
let scope = PassErrorScope::SetPipelineCompute(pipeline.as_info().id());
|
||||||
let scope = PassErrorScope::SetPipelineCompute(pipeline_id);
|
|
||||||
|
|
||||||
pipeline.same_device_as(cmd_buf).map_pass_err(scope)?;
|
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);
|
let pipeline = tracker.compute_pipelines.insert_single(pipeline);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user