diff options
author | Kunal Mohan <kunalmohan99@gmail.com> | 2020-06-19 00:52:16 +0530 |
---|---|---|
committer | Kunal Mohan <kunalmohan99@gmail.com> | 2020-06-19 11:12:50 +0530 |
commit | 48ef306bd3f1c9abbd1437e7a8f2b21b7b307a04 (patch) | |
tree | 0225482e8b537e696169b0cff97d564487747d78 /components/script/dom/gpurenderpassencoder.rs | |
parent | 00b3f785c4d4bb4da9d883128d9dc18e0406ad71 (diff) | |
download | servo-48ef306bd3f1c9abbd1437e7a8f2b21b7b307a04.tar.gz servo-48ef306bd3f1c9abbd1437e7a8f2b21b7b307a04.zip |
Update wgpu-core and wgpu-types
Diffstat (limited to 'components/script/dom/gpurenderpassencoder.rs')
-rw-r--r-- | components/script/dom/gpurenderpassencoder.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/components/script/dom/gpurenderpassencoder.rs b/components/script/dom/gpurenderpassencoder.rs index a74d1f86c8e..a2d223b6f5d 100644 --- a/components/script/dom/gpurenderpassencoder.rs +++ b/components/script/dom/gpurenderpassencoder.rs @@ -19,6 +19,7 @@ use crate::dom::gpurenderpipeline::GPURenderPipeline; use dom_struct::dom_struct; use webgpu::{ wgpu::command::{render_ffi as wgpu_render, RawPass}, + wgpu::id, wgt, WebGPU, WebGPURequest, }; @@ -29,12 +30,16 @@ pub struct GPURenderPassEncoder { channel: WebGPU, label: DomRefCell<Option<DOMString>>, #[ignore_malloc_size_of = "defined in wgpu-core"] - raw_pass: DomRefCell<Option<RawPass>>, + raw_pass: DomRefCell<Option<RawPass<id::CommandEncoderId>>>, command_encoder: Dom<GPUCommandEncoder>, } impl GPURenderPassEncoder { - fn new_inherited(channel: WebGPU, raw_pass: RawPass, parent: &GPUCommandEncoder) -> Self { + fn new_inherited( + channel: WebGPU, + raw_pass: RawPass<id::CommandEncoderId>, + parent: &GPUCommandEncoder, + ) -> Self { Self { channel, reflector_: Reflector::new(), @@ -47,7 +52,7 @@ impl GPURenderPassEncoder { pub fn new( global: &GlobalScope, channel: WebGPU, - raw_pass: RawPass, + raw_pass: RawPass<id::CommandEncoderId>, parent: &GPUCommandEncoder, ) -> DomRoot<Self> { reflect_dom_object( |