@SonnyBonds@mastodon.gamedev.place
Post #1215538
2026-03-07 17:00 UTC
@kristoff Managed to get it working. This part was correct, it was the consuming end that did it wrong. The path I needed to grab was not the module path, but "emittedIncludeTree". Like this:
consuming_module.addIncludePath(wgpu_dep.artifact("wgpu").getEmittedIncludeTree());
Replies (1)
-
@kristoff@hachyderm.io 2026-03-07 18:03
@SonnyBonds usually if you're going down that path you just do `mod.linkLibrary(wgpu_dep.artifact("wgpu"))` and that also adds the include paths, but if you want only the header file that's one way. Another is to do `mod.addIncludePath(wgpu_dep.path("path/to/headers")`