[WebGPU] Remove GPUBuffer.setSubData and implement GPUDevice.createBufferMapped
<rdar://problem/50951309>
Created attachment 371464 [details] Patch
Comment on attachment 371464 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=371464&action=review > Source/WebCore/platform/graphics/gpu/cocoa/GPUBufferMetal.mm:226 > + if (!m_device->tryGetQueue() || !(queue = m_device->tryGetQueue()->platformQueue())) The group will investigate and probably add the idea of multiple queues. We should figure out how this will work in that world. > Source/WebCore/platform/graphics/gpu/cocoa/GPUBufferMetal.mm:233 > + stagingMtlBuffer = adoptNS([m_device->platformDevice() newBufferWithLength:static_cast<NSUInteger>(m_byteLength) options:MTLResourceCPUCacheModeDefaultCache]); Can we cache these somehow? It seems silly to continually create and destroy these.
Comment on attachment 371464 [details] Patch Clearing flags on attachment: 371464 Committed r246217: <https://trac.webkit.org/changeset/246217>
All reviewed patches have been landed. Closing bug.