diff options
Diffstat (limited to 'components/script/dom/gpubindgroup.rs')
-rw-r--r-- | components/script/dom/gpubindgroup.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/components/script/dom/gpubindgroup.rs b/components/script/dom/gpubindgroup.rs index c14ca7a23b5..96f2d8db59b 100644 --- a/components/script/dom/gpubindgroup.rs +++ b/components/script/dom/gpubindgroup.rs @@ -45,6 +45,12 @@ impl GPUBindGroup { } } +impl GPUBindGroup { + pub fn id(&self) -> &WebGPUBindGroup { + &self.bind_group + } +} + impl GPUBindGroupMethods for GPUBindGroup { /// https://gpuweb.github.io/gpuweb/#dom-gpuobjectbase-label fn GetLabel(&self) -> Option<DOMString> { |