mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue