Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: a62fb1f7043fe913255f7f1954d0564ef29ce6b9 https://github.com/WebKit/WebKit/commit/a62fb1f7043fe913255f7f1954d0564ef29ce6b9 Author: David Neto <dn...@google.com> Date: 2024-11-19 (Tue, 19 Nov 2024)
Changed paths: M Source/CMakeLists.txt A Source/WebGPU/CMakeLists.txt A Source/WebGPU/WGSL/CMakeLists.txt M Source/WebGPU/WGSL/ConstantValue.h M Source/WebGPU/WGSL/Metal/MetalCodeGenerator.cpp M Source/cmake/OptionsJSCOnly.cmake M Source/cmake/WebKitFeatures.cmake Log Message: ----------- [WebGPU][CMake] Support executable target wgslc https://bugs.webkit.org/show_bug.cgi?id=283111 Reviewed by Tadeu Zagallo. Add ENABLE_WEBGPU CMake toggle, defaulted to off Also port it to Clang on Linux x86-64: - Don't assume building on Apple platform: The notify framework is available only on Darwin. - Don't assume __fp16 always exists. Use __Float16 instead. Combined changes: * Source/CMakeLists.txt: add WebGPU subdir if ENABLE_WEBGPU * Source/WebGPU/CMakeLists.txt: Added. * Source/WebGPU/WGSL/CMakeLists.txt: Added. * Source/WebGPU/WGSL/ConstantValue.h: When __fp16 is absent, fall back to _Float16 on non-Apple platforms. _Float16 is in C++23, and commonly supported in Clang and GCC. (WGSL::half::half): (WGSL::ConstantValue::getHalf const): * Source/WebGPU/WGSL/Metal/MetalCodeGenerator.cpp: Don't use Darwin's notify API on non-Apple targets. (WGSL::Metal::dumpMetalCodeIfNeeded): * Source/cmake/OptionsJSCOnly.cmake: Turn off ENABLE_WEBGPU * Source/cmake/WebKitFeatures.cmake: Add ENABLE_WEBGPU toggle, defaulted off Canonical link: https://commits.webkit.org/286825@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes