mirror of
https://github.com/servo/servo.git
synced 2025-08-12 00:45:33 +01:00
Implement GPURenderBundleEncoder and GPURenderBundle
This commit is contained in:
parent
75abccb16b
commit
aff22db33f
32 changed files with 676 additions and 115 deletions
|
@ -26,10 +26,11 @@ impl GPUBindGroup {
|
|||
bind_group: WebGPUBindGroup,
|
||||
device: WebGPUDevice,
|
||||
layout: &GPUBindGroupLayout,
|
||||
label: Option<USVString>,
|
||||
) -> Self {
|
||||
Self {
|
||||
reflector_: Reflector::new(),
|
||||
label: DomRefCell::new(None),
|
||||
label: DomRefCell::new(label),
|
||||
bind_group,
|
||||
device,
|
||||
layout: Dom::from_ref(layout),
|
||||
|
@ -41,9 +42,12 @@ impl GPUBindGroup {
|
|||
bind_group: WebGPUBindGroup,
|
||||
device: WebGPUDevice,
|
||||
layout: &GPUBindGroupLayout,
|
||||
label: Option<USVString>,
|
||||
) -> DomRoot<Self> {
|
||||
reflect_dom_object(
|
||||
Box::new(GPUBindGroup::new_inherited(bind_group, device, layout)),
|
||||
Box::new(GPUBindGroup::new_inherited(
|
||||
bind_group, device, layout, label,
|
||||
)),
|
||||
global,
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue