guijiyang
guijiyang
> I think `wgpuInstanceProcessEvents(instance)` has to be called to fire the callback. So could put that in the main loop, or u could block with a loop right after with...
> yeah my bad, i mean that u could put a blocking loop after the submit, so it can wait for the submit command to finish. or u could just...
> Yes so you have to put the blocking loop after the queuesubmit function. The point of the blocking loop is to busy wait (block the thread and wait) for...
> cmake 的 find_package 不稳定,这里估计要 patch 一下 cmake,然后用 packagedeps 的方式传入构建 fmt包是用xmake安装的,安装的路径下fmtConfig.cmake相关信息,在Windows下cmake默认的查找路径应该是不包含xmake的路径的,但是spdlog包安装的时候也能使用cmake find_package找到fmtConfig.cmake,这个是不是xmake在哪里传入了fmt包的路径信息给cmake了?
> 这里会传。。https://github.com/xmake-io/xmake/blob/80af97d2fb131d6c8a4eaff114035ecc578499e5/xmake/modules/package/tools/cmake.lua#L811 嗯,我在xmake添加了依赖库路径打印,可以看到Windows和Android都设置了下去。 然后在spdlog 的安装包的cmakelists.txt文件里面添加了打印`message(STATUS "CMAKE_PREFIX_PATH: ${CMAKE_PREFIX_PATH}")`,msvc打印的值为空,Android打印了ndk工具链路径,但是windows可以编译过去,Android却不行。 msvc: ```log checking for cmake ... D:\Program Files\CMake\bin\cmake D:\Program Files\CMake\bin\cmake -DSPDLOG_BUILD_TESTS=OFF -DSPDLOG_BUILD_EXAMPLE=OFF -DSPDLOG_BUILD_SHARED=OFF -DSPDLOG_USE_STD_FORMAT=OFF -DSPDLOG_FMT_EXTERNAL=ON -DSPDLOG_FMT_EXTERNAL_HO=OFF -DSPDLOG_NO_EXCEPTIONS=OFF -DSPDLOG_WCHAR_SUPPORT=OFF -DCMAKE_INSTALL_PREFIX=F:\packages\s\spdlog\v1.13.0\32899dd3c7db488c935409d18777b562 -DCMAKE_INSTALL_LIBDIR:PATH=lib -G "Visual Studio...
> xmake 是环境变量传进去的,所以 cmake 没输出。 至于 cmake 为什么找不到,咱也不知道 嗯,我去库作者那边问问,我本地用cmake编译也不行
> @sam-mccall gentle ping~ @ChuanqiXu9 hi, can your patch add support msvc module with *.ixx suffix source? I use xmake to generate compile database, clangd cant work properly.