mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Implement GPURenderBundleEncoder and GPURenderBundle
This commit is contained in:
parent
75abccb16b
commit
aff22db33f
32 changed files with 676 additions and 115 deletions
|
@ -103,6 +103,7 @@ impl GPUAdapterMethods for GPUAdapter {
|
|||
descriptor: desc,
|
||||
device_id: id,
|
||||
pipeline_id,
|
||||
label: descriptor.parent.label.as_ref().map(|s| s.to_string()),
|
||||
})
|
||||
.is_err()
|
||||
{
|
||||
|
@ -119,6 +120,7 @@ impl AsyncWGPUListener for GPUAdapter {
|
|||
device_id,
|
||||
queue_id,
|
||||
_descriptor,
|
||||
label,
|
||||
} => {
|
||||
let device = GPUDevice::new(
|
||||
&self.global(),
|
||||
|
@ -128,6 +130,7 @@ impl AsyncWGPUListener for GPUAdapter {
|
|||
Heap::default(),
|
||||
device_id,
|
||||
queue_id,
|
||||
label,
|
||||
);
|
||||
self.global().add_gpu_device(&device);
|
||||
promise.resolve_native(&device);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue