diff options
Diffstat (limited to 'components/script/dom/webidls/GPUBuffer.webidl')
-rw-r--r-- | components/script/dom/webidls/GPUBuffer.webidl | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/components/script/dom/webidls/GPUBuffer.webidl b/components/script/dom/webidls/GPUBuffer.webidl deleted file mode 100644 index 8cc7f652e80..00000000000 --- a/components/script/dom/webidls/GPUBuffer.webidl +++ /dev/null @@ -1,25 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ - -// https://gpuweb.github.io/gpuweb/#gpubuffer -[Exposed=(Window, DedicatedWorker), Serializable, Pref="dom.webgpu.enabled"] -interface GPUBuffer { - [NewObject] - Promise<undefined> mapAsync(GPUMapModeFlags mode, optional GPUSize64 offset = 0, optional GPUSize64 size); - [NewObject, Throws] - ArrayBuffer getMappedRange(optional GPUSize64 offset = 0, optional GPUSize64 size); - [Throws] - undefined unmap(); - [Throws] - undefined destroy(); -}; -GPUBuffer includes GPUObjectBase; - -dictionary GPUBufferDescriptor : GPUObjectDescriptorBase { - required GPUSize64 size; - required GPUBufferUsageFlags usage; - boolean mappedAtCreation = false; -}; - -typedef [EnforceRange] unsigned long long GPUSize64; |