.
Created attachment 459018 [details] WIP
Created attachment 459028 [details] Patch
Comment on attachment 459028 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=459028&action=review > Source/WebGPU/WebGPU/Buffer.mm:212 > + ASSERT(m_buffer.contents); We probably need some kind of zero-filling logic. Mapping a buffer for write is supposed to zero-fill it, if JS actually ends up reading the ArrayBuffer.
Oh, mapping a buffer for reading on discrete GPU systems requires a call to synchronizeResource().
What if JavaScript specifies the sentinel?
Created attachment 459384 [details] Patch
<rdar://problem/93318423>
Created attachment 459386 [details] Patch
Pull request: https://github.com/WebKit/WebKit/pull/714