- Added support for the WebGPU backend in the CMake configuration, enabling builds for Emscripten and native Dawn. - Implemented conditional compilation for WebGPU-specific features, including shader management and file system handling. - Updated the build process to exclude unnecessary modules and dependencies for WebGPU, optimizing the engine for browser environments. - Enhanced the installation script to include WebGPU-related files and directories in the output. - Refactored existing modules to accommodate WebGPU, ensuring compatibility and performance improvements across the engine. - Introduced new compile options and configurations tailored for WebGPU builds, including handling of third-party libraries and assets.
14 lines
560 B
Plaintext
14 lines
560 B
Plaintext
// WebGPU shell root script. When no main.nut ships with the game this runs the
|
|
// embedded demo (eve.demoScript) exactly like the desktop/iOS shells, but also
|
|
// exercises the WebGPU surface + ImGui overlay so a browser smoke test has
|
|
// something visible to validate.
|
|
|
|
// demoScript is injected by the engine at runtime (src/scripts/demo.nut).
|
|
if ("demoScript" in eve && eve.demoScript != null && eve.demoScript != "") {
|
|
try {
|
|
compilestring(eve.demoScript)();
|
|
} catch (e) {
|
|
print("embedded demo failed to load: " + e + "\n");
|
|
}
|
|
}
|