aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gpusampler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/gpusampler.rs')
-rw-r--r--components/script/dom/gpusampler.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/components/script/dom/gpusampler.rs b/components/script/dom/gpusampler.rs
index db85f60e9b6..488d3df1d05 100644
--- a/components/script/dom/gpusampler.rs
+++ b/components/script/dom/gpusampler.rs
@@ -64,6 +64,20 @@ impl GPUSampler {
}
}
+impl GPUSampler {
+ pub fn id(&self) -> WebGPUSampler {
+ self.sampler
+ }
+
+ pub fn is_valid(&self) -> bool {
+ self.valid.get()
+ }
+
+ pub fn compare(&self) -> bool {
+ self.compare_enable
+ }
+}
+
impl GPUSamplerMethods for GPUSampler {
/// https://gpuweb.github.io/gpuweb/#dom-gpuobjectbase-label
fn GetLabel(&self) -> Option<DOMString> {