aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/GPUQueue.webidl
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webidls/GPUQueue.webidl')
-rw-r--r--components/script/dom/webidls/GPUQueue.webidl25
1 files changed, 19 insertions, 6 deletions
diff --git a/components/script/dom/webidls/GPUQueue.webidl b/components/script/dom/webidls/GPUQueue.webidl
index a1fdb9aa882..b1046093591 100644
--- a/components/script/dom/webidls/GPUQueue.webidl
+++ b/components/script/dom/webidls/GPUQueue.webidl
@@ -7,12 +7,25 @@
interface GPUQueue {
void submit(sequence<GPUCommandBuffer> commandBuffers);
- // GPUFence createFence(optional GPUFenceDescriptor descriptor = {});
- // void signal(GPUFence fence, unsigned long long signalValue);
+ //GPUFence createFence(optional GPUFenceDescriptor descriptor = {});
+ //void signal(GPUFence fence, GPUFenceValue signalValue);
- // void copyImageBitmapToTexture(
- // GPUImageBitmapCopyView source,
- // GPUTextureCopyView destination,
- // GPUExtent3D copySize);
+ [Throws] void writeBuffer(
+ GPUBuffer buffer,
+ GPUSize64 bufferOffset,
+ /*[AllowShared]*/ ArrayBuffer data,
+ optional GPUSize64 dataOffset = 0,
+ optional GPUSize64 size);
+
+ [Throws] void writeTexture(
+ GPUTextureCopyView destination,
+ /*[AllowShared]*/ ArrayBuffer data,
+ GPUTextureDataLayout dataLayout,
+ GPUExtent3D size);
+
+ //void copyImageBitmapToTexture(
+ // GPUImageBitmapCopyView source,
+ // GPUTextureCopyView destination,
+ // GPUExtent3D copySize);
};
GPUQueue includes GPUObjectBase;