-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add assertions to compute example * add testable triangle example * make importable * fiz * sigh - this is why I'm not a fan of pathlib... * add ci-generated screenshot * I wonder if this changes the order ...
- Loading branch information
1 parent
77f62bd
commit 05e0040
Showing
4 changed files
with
30 additions
and
5 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
""" | ||
Import the viz from triangle.py and run it using the auto-gui. | ||
""" | ||
# test_example = true | ||
|
||
import sys | ||
from pathlib import Path | ||
|
||
from wgpu.gui.auto import WgpuCanvas, run | ||
import wgpu.backends.rs # noqa: F401, Select Rust backend | ||
|
||
sys.path.insert(0, str(Path(__file__).parent)) | ||
|
||
from triangle import main # noqa: E402, The function to call to run the visualization | ||
|
||
|
||
canvas = WgpuCanvas() | ||
device = main(canvas) | ||
|
||
|
||
if __name__ == "__main__": | ||
run() |