Update wgpu-core and wgpu-types

This commit is contained in:
Kunal Mohan 2020-06-04 01:19:13 +05:30
parent 1d4efb48ba
commit 3b5ede153d
18 changed files with 58 additions and 90 deletions

View file

@ -19,7 +19,7 @@ pub struct GPUShaderModule {
}
impl GPUShaderModule {
fn new_inherited(shader_module: WebGPUShaderModule) -> GPUShaderModule {
fn new_inherited(shader_module: WebGPUShaderModule) -> Self {
Self {
reflector_: Reflector::new(),
label: DomRefCell::new(None),
@ -27,10 +27,7 @@ impl GPUShaderModule {
}
}
pub fn new(
global: &GlobalScope,
shader_module: WebGPUShaderModule,
) -> DomRoot<GPUShaderModule> {
pub fn new(global: &GlobalScope, shader_module: WebGPUShaderModule) -> DomRoot<Self> {
reflect_dom_object(
Box::new(GPUShaderModule::new_inherited(shader_module)),
global,