Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions wasm/webgl/webgl_triangle/build_web.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@

set -euxo pipefail

# NOTE: changing this requires changing the same values in the `web/index.html`.
# NOTE: changing these requires changing the same values in the `web/index.html`.
INITIAL_MEMORY_PAGES=2000
MAX_MEMORY_PAGES=65536
PAGE_SIZE=65536

INITIAL_MEMORY_BYTES=$(expr $INITIAL_MEMORY_PAGES \* $MAX_MEMORY_PAGES)
MAX_MEMORY_BYTES=$(expr $MAX_MEMORY_PAGES \* $MAX_MEMORY_PAGES)
INITIAL_MEMORY_BYTES=$(expr $INITIAL_MEMORY_PAGES \* $PAGE_SIZE)
MAX_MEMORY_BYTES=$(expr $MAX_MEMORY_PAGES \* $PAGE_SIZE)

ODIN_ROOT=$(odin root)
ODIN_JS="$ODIN_ROOT/core/sys/wasm/js/odin.js"
Expand Down