diff options
author | Kunal Mohan <kunalmohan99@gmail.com> | 2020-07-04 13:29:23 +0530 |
---|---|---|
committer | Kunal Mohan <kunalmohan99@gmail.com> | 2020-07-04 21:49:32 +0530 |
commit | fae66089fac0a08d609c567609c960844922878a (patch) | |
tree | d248ffaf56dd4b24a0e7de596a8b3fe26081b413 /components/script/dom/gputexture.rs | |
parent | 8ef7f245419bc7968a970f6e992f8760a6bedc97 (diff) | |
download | servo-fae66089fac0a08d609c567609c960844922878a.tar.gz servo-fae66089fac0a08d609c567609c960844922878a.zip |
Implement GPUQueue.writeBuffer and GPUQueue.writeTexture
Diffstat (limited to 'components/script/dom/gputexture.rs')
-rw-r--r-- | components/script/dom/gputexture.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/dom/gputexture.rs b/components/script/dom/gputexture.rs index 6bf4892887a..0dbb3022291 100644 --- a/components/script/dom/gputexture.rs +++ b/components/script/dom/gputexture.rs @@ -107,6 +107,10 @@ impl GPUTexture { pub fn id(&self) -> WebGPUTexture { self.texture } + + pub fn is_valid(&self) -> bool { + self.valid.get() + } } impl GPUTextureMethods for GPUTexture { |