aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gpucommandencoder.rs
diff options
context:
space:
mode:
authorIstvan Miklos <istvan.miklos@h-lab.eu>2020-02-18 11:29:21 +0100
committerIstvan Miklos <istvan.miklos@h-lab.eu>2020-02-19 11:19:59 +0100
commit170e9971ac0acab6e5dba52fcc2e09064d1e0090 (patch)
tree514ebccdf98992fd4c80d008c08f0e4bef05290f /components/script/dom/gpucommandencoder.rs
parent5597ccf57ddc2b77fcb4a8071f575b0dc9389a12 (diff)
downloadservo-170e9971ac0acab6e5dba52fcc2e09064d1e0090.tar.gz
servo-170e9971ac0acab6e5dba52fcc2e09064d1e0090.zip
Implement GPUComputePassEncoder functions
Implement the `dispatch`, `endPass`, `setBindGroup`, `setPipeline` functions of `GPUComputePassEncoder`.
Diffstat (limited to 'components/script/dom/gpucommandencoder.rs')
-rw-r--r--components/script/dom/gpucommandencoder.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/components/script/dom/gpucommandencoder.rs b/components/script/dom/gpucommandencoder.rs
index b0086ec0704..03b9373f3ab 100644
--- a/components/script/dom/gpucommandencoder.rs
+++ b/components/script/dom/gpucommandencoder.rs
@@ -17,7 +17,7 @@ use crate::dom::gpucomputepassencoder::GPUComputePassEncoder;
use dom_struct::dom_struct;
use ipc_channel::ipc;
use std::collections::HashSet;
-use webgpu::{wgpu::command::RawPass, WebGPU, WebGPUCommandEncoder, WebGPURequest};
+use webgpu::{WebGPU, WebGPUCommandEncoder, WebGPURequest};
#[dom_struct]
pub struct GPUCommandEncoder {
@@ -69,11 +69,7 @@ impl GPUCommandEncoderMethods for GPUCommandEncoder {
&self,
_descriptor: &GPUComputePassDescriptor,
) -> DomRoot<GPUComputePassEncoder> {
- GPUComputePassEncoder::new(
- &self.global(),
- self.channel.clone(),
- RawPass::new_compute(self.encoder.0),
- )
+ GPUComputePassEncoder::new(&self.global(), self.channel.clone(), self.encoder)
}
/// https://gpuweb.github.io/gpuweb/#dom-gpucommandencoder-copybuffertobuffer