-
Notifications
You must be signed in to change notification settings - Fork 969
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revamp Examples to Match Website (#4765)
* Revamp examples to match website * Small fixes * Fix stencil_triangles on resize * Fix * Fix everything
- Loading branch information
1 parent
ebcfd25
commit 7a37229
Showing
30 changed files
with
552 additions
and
705 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,45 +34,15 @@ jobs: | |
- name: Install wasm-bindgen | ||
run: cargo +stable install wasm-bindgen-cli --version=$WASM_BINDGEN_VERSION | ||
|
||
- name: Build WebGPU examples | ||
run: cargo build --release --target wasm32-unknown-unknown | ||
|
||
- name: Generate JS bindings for WebGPU examples | ||
run: | | ||
for i in target/wasm32-unknown-unknown/release/*.wasm; | ||
do | ||
wasm-bindgen --no-typescript --out-dir target/generated-gpu --web "$i"; | ||
done | ||
- name: Build examples | ||
run: cargo xtask run-wasm --no-serve | ||
|
||
- name: Deploy WebGPU examples | ||
uses: JamesIves/[email protected] | ||
if: github.ref == 'refs/heads/trunk' | ||
with: | ||
token: ${{ secrets.WEB_DEPLOY }} | ||
folder: target/generated-gpu | ||
repository-name: gfx-rs/wgpu-rs.github.io | ||
branch: master | ||
target-folder: examples-gpu/wasm | ||
|
||
- name: Clean the build | ||
run: cargo clean | ||
|
||
- name: Build WebGL examples | ||
run: cargo build --release --target wasm32-unknown-unknown --features webgl | ||
|
||
- name: Generate JS bindings for WebGL examples | ||
run: | | ||
for i in target/wasm32-unknown-unknown/release/*.wasm; | ||
do | ||
wasm-bindgen --no-typescript --out-dir target/generated-gl --web "$i"; | ||
done | ||
- name: Deploy WebGL examples | ||
uses: JamesIves/[email protected] | ||
if: github.ref == 'refs/heads/trunk' | ||
with: | ||
token: ${{ secrets.WEB_DEPLOY }} | ||
folder: target/generated-gl | ||
folder: target/generated | ||
repository-name: gfx-rs/wgpu-rs.github.io | ||
branch: master | ||
target-folder: examples-gl/wasm | ||
target-folder: examples/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.