...
Created attachment 375353 [details] WIP
Created attachment 375360 [details] WIP just need to finish up a few more of the native functions.
Created attachment 375477 [details] WIP I think it's done. It passes all our tests. Just need to clean up the code.
Created attachment 375559 [details] patch
Comment on attachment 375559 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=375559&action=review > Source/WebCore/platform/graphics/gpu/cocoa/GPUComputePipelineMetal.mm:38 > +#import <wtf/MonotonicTime.h> will revert changes in this file
Comment on attachment 375559 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=375559&action=review > Source/WebCore/Modules/webgpu/WHLSL/Metal/WHLSLNativeFunctionWriter.h:30 > +#include <wtf/text/WTFString.h> will revert
Attachment 375559 [details] did not pass style-queue: ERROR: Source/WebCore/platform/graphics/gpu/cocoa/GPUComputePipelineMetal.mm:38: Alphabetical sorting problem. [build/include_order] [4] ERROR: Source/WebCore/platform/graphics/gpu/cocoa/GPUComputePipelineMetal.mm:38: Alphabetical sorting problem. [build/include_order] [4] ERROR: Source/WebCore/platform/graphics/gpu/cocoa/GPUComputePipelineMetal.mm:94: Should have a space between // and comment [whitespace/comments] [4] ERROR: Source/WebCore/platform/graphics/gpu/cocoa/GPUComputePipelineMetal.mm:97: Should have a space between // and comment [whitespace/comments] [4] Total errors found: 4 in 5 files If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 375560 [details] patch
Comment on attachment 375560 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=375560&action=review r=me > Source/WebCore/Modules/webgpu/WHLSL/Metal/WHLSLNativeFunctionWriter.cpp:247 > + "if (", args[1], " < ", args[0], ".length) ", returnName, " = &(", args[0], ".pointer[", args[1], "]);\n" nit: might be simpler/shorter with a ternary conditional.
Comment on attachment 375560 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=375560&action=review >> Source/WebCore/Modules/webgpu/WHLSL/Metal/WHLSLNativeFunctionWriter.cpp:247 >> + "if (", args[1], " < ", args[0], ".length) ", returnName, " = &(", args[0], ".pointer[", args[1], "]);\n" > > nit: might be simpler/shorter with a ternary conditional. sounds good
Created attachment 375573 [details] patch for landing
Comment on attachment 375573 [details] patch for landing Clearing flags on attachment: 375573 Committed r248280: <https://trac.webkit.org/changeset/248280>
All reviewed patches have been landed. Closing bug.
<rdar://problem/53965153>