diff options
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> { |