From 170e9971ac0acab6e5dba52fcc2e09064d1e0090 Mon Sep 17 00:00:00 2001 From: Istvan Miklos Date: Tue, 18 Feb 2020 11:29:21 +0100 Subject: Implement GPUComputePassEncoder functions Implement the `dispatch`, `endPass`, `setBindGroup`, `setPipeline` functions of `GPUComputePassEncoder`. --- components/script/dom/gpucomputepipeline.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'components/script/dom/gpucomputepipeline.rs') 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 { -- cgit v1.2.3