mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +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
|
@ -20,7 +20,7 @@ pub struct GPUComputePipeline {
|
|||
}
|
||||
|
||||
impl GPUComputePipeline {
|
||||
fn new_inherited(compute_pipeline: WebGPUComputePipeline) -> GPUComputePipeline {
|
||||
fn new_inherited(compute_pipeline: WebGPUComputePipeline) -> Self {
|
||||
Self {
|
||||
reflector_: Reflector::new(),
|
||||
label: DomRefCell::new(None),
|
||||
|
@ -28,10 +28,7 @@ impl GPUComputePipeline {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn new(
|
||||
global: &GlobalScope,
|
||||
compute_pipeline: WebGPUComputePipeline,
|
||||
) -> DomRoot<GPUComputePipeline> {
|
||||
pub fn new(global: &GlobalScope, compute_pipeline: WebGPUComputePipeline) -> DomRoot<Self> {
|
||||
reflect_dom_object(
|
||||
Box::new(GPUComputePipeline::new_inherited(compute_pipeline)),
|
||||
global,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue