diff options
author | Istvan Miklos <istvan.miklos@h-lab.eu> | 2020-02-03 15:42:13 +0100 |
---|---|---|
committer | Istvan Miklos <istvan.miklos@h-lab.eu> | 2020-02-11 10:15:03 +0100 |
commit | 9031369c19f3274a1dee4e15e67c0c539d8aa976 (patch) | |
tree | 4ba7e1beb281d179f42bf575bacc2c58a4e8d574 /components/script/dom/gpushadermodule.rs | |
parent | a8621c4ed9d87f6d168fd9b70e0cf501a4033632 (diff) | |
download | servo-9031369c19f3274a1dee4e15e67c0c539d8aa976.tar.gz servo-9031369c19f3274a1dee4e15e67c0c539d8aa976.zip |
Initial implementation of GPUComputePipeline
Added WebIDL bindings for `GPUComputePipeline`.
Implemented the `createComputePipeline` function of `GPUDevice`.
Diffstat (limited to 'components/script/dom/gpushadermodule.rs')
-rw-r--r-- | components/script/dom/gpushadermodule.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/components/script/dom/gpushadermodule.rs b/components/script/dom/gpushadermodule.rs index 215a0efc100..241f0650245 100644 --- a/components/script/dom/gpushadermodule.rs +++ b/components/script/dom/gpushadermodule.rs @@ -41,6 +41,12 @@ impl GPUShaderModule { } } +impl GPUShaderModule { + pub fn id(&self) -> WebGPUShaderModule { + self.shader_module + } +} + impl GPUShaderModuleMethods for GPUShaderModule { /// https://gpuweb.github.io/gpuweb/#dom-gpuobjectbase-label fn GetLabel(&self) -> Option<DOMString> { |