[Web GPU] GPUDevice::createTexture implementation prototype
<rdar://problem/47894312>
Created attachment 361432 [details] Patch
Created attachment 361438 [details] Patch
Created attachment 361441 [details] Patch
Comment on attachment 361441 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=361441&action=review > Source/WebCore/platform/graphics/gpu/cocoa/GPUTextureMetal.mm:66 > + if (usage & MTLTextureUsageShaderWrite) I'm not sure if we should be testing for the MTL form or the GPUTextureUsage::Storage flag. I think the latter makes more sense. > Source/WebCore/platform/graphics/gpu/cocoa/GPUTextureMetal.mm:75 > + return usage; Should it be an error (nullopt) to return unknown? > Source/WebCore/platform/graphics/gpu/cocoa/GPUTextureMetal.mm:110 > + auto usage = mtlTextureUsageForGPUTextureUsageFlags(descriptor.usage); > + if (!usage) { Yeah, so here.... if we're usage type unknown, should we error? > Source/WebCore/platform/graphics/gpu/cocoa/GPUTextureMetal.mm:111 > + LOG(WebGPU, "%s: Invalid GPUTextureUsageFlags!"); You forgot functionName. Surprised it compiled.
Created attachment 361474 [details] Patch for landing
The commit-queue encountered the following flaky tests while processing attachment 361474 [details]: media/modern-media-controls/compact-media-controls/compact-media-controls-constructor.html bug 193587 (author: graouts@apple.com) The commit-queue is continuing to process your patch.
Comment on attachment 361474 [details] Patch for landing Clearing flags on attachment: 361474 Committed r241181: <https://trac.webkit.org/changeset/241181>
All reviewed patches have been landed. Closing bug.