separate Queue&Device Id (#32966)

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
Samson 2024-08-08 09:53:17 +02:00 committed by GitHub
parent a5df51ea56
commit f989d3776e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 54 additions and 32 deletions

View file

@ -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()