Closed gabrieldechichi closed 3 months ago
Hi Gabriel,
Thanks for trying out this project and reporting these issues!
I am currently using an older Google Dawn version and I am not sure yet what is happening with the use of the SwapChain with the latest Dawn version, but I am also getting segmentation faults on my side. I followed your suggestion and locked the Dawn version to an older version that results in functional examples again. Over time I will upgrade the Dawn version when I figured out what is triggering the runtime errors related to the use of SwapChain.
Could you pull the most recent changes and then run the download script again (locked to Google Dawn version 'chromium/6370'):
cd external/dawn/
rm -rf dawn depot_tools
bash download_dawn.sh
After a rebuild of the project the examples should work.
If you encounter any issues feel free to let me know.
With best regards, Sam
Hi @samdauwe thanks for the timely fix. Just pulled latest and can confirm the examples work! Excited to dive in!
Thanks again,
Gabriel
When following the instructions on the README I currently get this after I try running
make all
, as well asbash ./build.sh -webgpu_native_examples
if using Docker.The compile error can be fixed by using switching the line to:
gpuContext.dawn_native.instance->SetBackendValidationLevel(dawn::native::BackendValidationLevel::Full);
However, this then trigger runtime errors related to the use of SwapChain.
It looks like the webgpu_native headers are probably out of sync with the latest dawn? My suggestion would be to lock dawn to a specific tag on the download script.