diff options
author | Istvan Miklos <istvan.miklos@h-lab.eu> | 2020-02-18 11:29:21 +0100 |
---|---|---|
committer | Istvan Miklos <istvan.miklos@h-lab.eu> | 2020-02-19 11:19:59 +0100 |
commit | 170e9971ac0acab6e5dba52fcc2e09064d1e0090 (patch) | |
tree | 514ebccdf98992fd4c80d008c08f0e4bef05290f /components/script/dom/gpucomputepipeline.rs | |
parent | 5597ccf57ddc2b77fcb4a8071f575b0dc9389a12 (diff) | |
download | servo-170e9971ac0acab6e5dba52fcc2e09064d1e0090.tar.gz servo-170e9971ac0acab6e5dba52fcc2e09064d1e0090.zip |
Implement GPUComputePassEncoder functions
Implement the `dispatch`, `endPass`, `setBindGroup`, `setPipeline` functions of `GPUComputePassEncoder`.
Diffstat (limited to 'components/script/dom/gpucomputepipeline.rs')
-rw-r--r-- | components/script/dom/gpucomputepipeline.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/components/script/dom/gpucomputepipeline.rs b/components/script/dom/gpucomputepipeline.rs index 32c0338a7e9..5d7620b4556 100644 --- a/components/script/dom/gpucomputepipeline.rs +++ b/components/script/dom/gpucomputepipeline.rs @@ -42,6 +42,12 @@ impl GPUComputePipeline { } } +impl GPUComputePipeline { + pub fn id(&self) -> &WebGPUComputePipeline { + &self.compute_pipeline + } +} + impl GPUComputePipelineMethods for GPUComputePipeline { /// https://gpuweb.github.io/gpuweb/#dom-gpuobjectbase-label fn GetLabel(&self) -> Option<DOMString> { |