Implement GPUBuffer.getMappedRange()

This commit is contained in:
Kunal Mohan 2020-06-29 22:37:30 +05:30
parent 19b36bd795
commit 575036bb88
4 changed files with 132 additions and 91 deletions

View file

@ -6,7 +6,7 @@
[Exposed=(Window, DedicatedWorker), Serializable, Pref="dom.webgpu.enabled"]
interface GPUBuffer {
Promise<void> mapAsync(GPUMapModeFlags mode, optional GPUSize64 offset = 0, optional GPUSize64 size = 0);
//ArrayBuffer getMappedRange(optional GPUSize64 offset = 0, optional GPUSize64 size = 0);
[Throws] ArrayBuffer getMappedRange(optional GPUSize64 offset = 0, optional GPUSize64 size = 0);
void unmap();
void destroy();