mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
separate Queue&Device Id (#32966)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
parent
a5df51ea56
commit
f989d3776e
7 changed files with 54 additions and 32 deletions
|
@ -138,10 +138,14 @@ impl GPUAdapterMethods for GPUAdapter {
|
|||
}
|
||||
}
|
||||
}
|
||||
let id = self
|
||||
let device_id = self
|
||||
.global()
|
||||
.wgpu_id_hub()
|
||||
.create_device_id(self.adapter.0.backend());
|
||||
let queue_id = self
|
||||
.global()
|
||||
.wgpu_id_hub()
|
||||
.create_queue_id(self.adapter.0.backend());
|
||||
let pipeline_id = self.global().pipeline_id();
|
||||
if self
|
||||
.channel
|
||||
|
@ -150,7 +154,8 @@ impl GPUAdapterMethods for GPUAdapter {
|
|||
sender,
|
||||
adapter_id: self.adapter,
|
||||
descriptor: desc,
|
||||
device_id: id,
|
||||
device_id,
|
||||
queue_id,
|
||||
pipeline_id,
|
||||
})
|
||||
.is_err()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue