Skip to content

Commit

Permalink
Cherry-pick picks for recent WebGPU API changes for a Halide 17.0.1 r…
Browse files Browse the repository at this point in the history
…elease (#8106)

* Don't require Halide_WebGPU when using wasm (#8063) (#8065)

* Don't require Halide_WebGPU when using wasm (#8063)

* trigger buildbots

* [WebGPU] Update to latest native headers (#8081)

* [WebGPU] Update to latest native headers

* Remove #ifdef for `requiredFeature[s]Count`

* Pass nullptr to wgpuCreateInstance
  * Emscripten currently requires this
  * Dawn accepts it too

* Use nullptr for another wgpuCreateInstance call

---------

Co-authored-by: James Price <[email protected]>
  • Loading branch information
steven-johnson and jrprice authored Feb 19, 2024
1 parent 3577f88 commit 8f424e5
Show file tree
Hide file tree
Showing 4 changed files with 324 additions and 181 deletions.
2 changes: 1 addition & 1 deletion cmake/HalideGeneratorHelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ function(_Halide_target_link_gpu_libs TARGET VISIBILITY)
target_link_libraries(${TARGET} ${VISIBILITY} "${FOUNDATION_LIBRARY}" "${METAL_LIBRARY}")
endif ()

if ("${ARGN}" MATCHES "webgpu")
if ("${ARGN}" MATCHES "webgpu" AND NOT "${ARGN}" MATCHES "wasm")
find_package(Halide_WebGPU REQUIRED)
target_link_libraries(${TARGET} ${VISIBILITY} Halide::WebGPU)
endif ()
Expand Down
Loading

0 comments on commit 8f424e5

Please sign in to comment.