diff options
author | Kunal Mohan <kunalmohan99@gmail.com> | 2020-08-03 01:45:29 +0530 |
---|---|---|
committer | Kunal Mohan <kunalmohan99@gmail.com> | 2020-08-03 01:45:29 +0530 |
commit | ce6e09a3aa3b9ef20dcc8f1ff5712f7a2691aa27 (patch) | |
tree | 4633a1ec77c6bad1c6fe6f0e46ebd9e5bb783aee /components/script/dom/gpucomputepassencoder.rs | |
parent | 8eff1d74de989f837eb54e80fb7296a98ef3220b (diff) | |
download | servo-ce6e09a3aa3b9ef20dcc8f1ff5712f7a2691aa27.tar.gz servo-ce6e09a3aa3b9ef20dcc8f1ff5712f7a2691aa27.zip |
Change ErrorScopeId type to NonZeroU64
And extract it from WebGPURequest
Diffstat (limited to 'components/script/dom/gpucomputepassencoder.rs')
-rw-r--r-- | components/script/dom/gpucomputepassencoder.rs | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/components/script/dom/gpucomputepassencoder.rs b/components/script/dom/gpucomputepassencoder.rs index f35313295e6..c55eaf86fe2 100644 --- a/components/script/dom/gpucomputepassencoder.rs +++ b/components/script/dom/gpucomputepassencoder.rs @@ -91,12 +91,14 @@ impl GPUComputePassEncoderMethods for GPUComputePassEncoder { if let Some(compute_pass) = self.compute_pass.borrow_mut().take() { self.channel .0 - .send(WebGPURequest::RunComputePass { - command_encoder_id: self.command_encoder.id().0, - device_id: self.command_encoder.device().id().0, - scope_id: self.command_encoder.device().use_current_scope(), - compute_pass, - }) + .send(( + self.command_encoder.device().use_current_scope(), + WebGPURequest::RunComputePass { + command_encoder_id: self.command_encoder.id().0, + device_id: self.command_encoder.device().id().0, + compute_pass, + }, + )) .expect("Failed to send RunComputePass"); self.command_encoder.set_state( |