mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update wgpu-core and wgpu-types
This commit is contained in:
parent
1d4efb48ba
commit
3b5ede153d
18 changed files with 58 additions and 90 deletions
|
@ -21,7 +21,7 @@ pub struct GPUBindGroup {
|
|||
}
|
||||
|
||||
impl GPUBindGroup {
|
||||
fn new_inherited(bind_group: WebGPUBindGroup, valid: bool) -> GPUBindGroup {
|
||||
fn new_inherited(bind_group: WebGPUBindGroup, valid: bool) -> Self {
|
||||
Self {
|
||||
reflector_: Reflector::new(),
|
||||
label: DomRefCell::new(None),
|
||||
|
@ -30,11 +30,7 @@ impl GPUBindGroup {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn new(
|
||||
global: &GlobalScope,
|
||||
bind_group: WebGPUBindGroup,
|
||||
valid: bool,
|
||||
) -> DomRoot<GPUBindGroup> {
|
||||
pub fn new(global: &GlobalScope, bind_group: WebGPUBindGroup, valid: bool) -> DomRoot<Self> {
|
||||
reflect_dom_object(
|
||||
Box::new(GPUBindGroup::new_inherited(bind_group, valid)),
|
||||
global,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue