File tree 2 files changed +3
-6
lines changed 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -354,8 +354,9 @@ commands:
354
354
CHROME_FLAGS_HEADLESS : " --headless --remote-debugging-port=1234"
355
355
CHROME_FLAGS_WASM : " --enable-experimental-webassembly-features --js-flags=\" --experimental-wasm-memory64 --experimental-wasm-stack-switching --experimental-wasm-type-reflection\" "
356
356
CHROME_FLAGS_NOCACHE : " --disk-cache-dir=/dev/null --disk-cache-size=1 --media-cache-size=1 --disable-application-cache --incognito"
357
+ CHROME_FLAGS_WEBGPU : " --enable-unsafe-webgpu --use-webgpu-adapter=swiftshader --enable-features=Vulkan"
357
358
command : |
358
- export EMTEST_BROWSER="/usr/bin/google-chrome $CHROME_FLAGS_BASE $CHROME_FLAGS_HEADLESS $CHROME_FLAGS_WASM $CHROME_FLAGS_NOCACHE"
359
+ export EMTEST_BROWSER="/usr/bin/google-chrome $CHROME_FLAGS_BASE $CHROME_FLAGS_HEADLESS $CHROME_FLAGS_WASM $CHROME_FLAGS_NOCACHE $CHROME_FLAGS_WEBGPU "
359
360
# There are tests in the browser test suite that using libraries
360
361
# that are not included by "./embuilder build ALL". For example the
361
362
# PIC version of libSDL which is used by test_sdl2_misc_main_module
Original file line number Diff line number Diff line change @@ -24,11 +24,7 @@ void GetDevice(void (*callback)(wgpu::Device)) {
24
24
if (message) {
25
25
printf (" RequestAdapter: %s\n " , message);
26
26
}
27
- if (status == WGPURequestAdapterStatus_Unavailable) {
28
- printf (" WebGPU unavailable; exiting cleanly\n " );
29
- // exit(0) (rather than emscripten_force_exit(0)) ensures there is no dangling keepalive.
30
- exit (0 );
31
- }
27
+ assert (status != WGPURequestAdapterStatus_Unavailable && " WebGPU unavailable" );
32
28
assert (status == WGPURequestAdapterStatus_Success);
33
29
34
30
wgpu::Adapter adapter = wgpu::Adapter::Acquire (cAdapter);
You can’t perform that action at this time.
0 commit comments