Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Extended Examples #3885

Merged
Show file tree
Hide file tree
Changes from 56 commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
a157419
Add the base of the example. May need refining and definitely fact-ch…
JustAnotherCodemonkey Jun 23, 2023
594f3b8
Start change to changelog.
JustAnotherCodemonkey Jun 23, 2023
68b2e68
Complete changelog change for repeated-compute.
JustAnotherCodemonkey Jun 23, 2023
f750f86
Apply suggestion to fix typos.
JustAnotherCodemonkey Jun 23, 2023
e87dccd
Add storage-texture example which currently works native but needs to…
JustAnotherCodemonkey Jun 25, 2023
4065a6c
Merge typo fixing from remote.
JustAnotherCodemonkey Jun 25, 2023
4182531
repeated-compute now works on the web. [no ci]
JustAnotherCodemonkey Jun 25, 2023
8e1f203
`storage-texture` now works on the web as well as native.
JustAnotherCodemonkey Jun 25, 2023
a27a574
Format because I forgot to do that (ugh).
JustAnotherCodemonkey Jun 25, 2023
3c8ba56
Add `storage-texture` to changelog.
JustAnotherCodemonkey Jun 25, 2023
049d516
Add `render-to-texture` example.
JustAnotherCodemonkey Jun 25, 2023
76a7baa
Not all the files got git added. Fixed it.
JustAnotherCodemonkey Jun 25, 2023
5ab1d4d
Add `render-to-texture` to changelog.
JustAnotherCodemonkey Jun 26, 2023
baf94b3
Make better readme's and add examples to said readme's.
JustAnotherCodemonkey Jun 26, 2023
44840e4
Oops. Put the example updates in the wrong place.
JustAnotherCodemonkey Jun 26, 2023
849dcac
Add `uniform-values` example.
JustAnotherCodemonkey Jun 27, 2023
96054a8
Apply clippy suggestions.
JustAnotherCodemonkey Jun 27, 2023
0185200
Improved readme's and documentation.
JustAnotherCodemonkey Jun 27, 2023
45e9664
Fmt. Turning into the Joker rn.
JustAnotherCodemonkey Jun 27, 2023
dca6a19
Make instructions for examples on the web more clear. \(Fmt and clipp…
JustAnotherCodemonkey Jun 27, 2023
a15fc4a
hello-workgroups It doesn't work.
JustAnotherCodemonkey Jun 29, 2023
2cbd6ef
Add basic comments and readme to hello-workgroups.
JustAnotherCodemonkey Jun 29, 2023
c7ccebc
Add hello-synchronization example. Currently doesn't have any tests b…
JustAnotherCodemonkey Jun 30, 2023
2ef67cc
Forgot to check wasm compatibility for hello-synchronization. Fixed it.
JustAnotherCodemonkey Jun 30, 2023
337afff
Add test for hello-synchronization.
JustAnotherCodemonkey Jul 1, 2023
9e972ec
Make my examples downlevel defaults.
JustAnotherCodemonkey Jul 1, 2023
24fee15
Make uniform-values downlevel defaults. (Forgot to do that last commit.)
JustAnotherCodemonkey Jul 1, 2023
2a34a8d
Fix clippy doc complaints.
JustAnotherCodemonkey Jul 7, 2023
a21cca8
Didn't fully fix the docs last commit. Got it here I think.
JustAnotherCodemonkey Jul 7, 2023
f246ac5
Fix redundant bullet point in examples/hello-workgroups/README.md.
JustAnotherCodemonkey Aug 3, 2023
5a0b591
Trim down the introduction section of examples/hello-workgroups/READM…
JustAnotherCodemonkey Aug 3, 2023
bd8e239
Add technical links section to examples/hello-workgroups/README.md.
JustAnotherCodemonkey Aug 3, 2023
4258690
Use idiomatic Rust comments, break up big text wall into paragraphs, …
JustAnotherCodemonkey Aug 3, 2023
6945d99
Move output image functions into examples/common and give output_imag…
JustAnotherCodemonkey Aug 3, 2023
530eb50
Modify changelog for moving output_image_native and output_image_wasm…
JustAnotherCodemonkey Aug 3, 2023
5deb26f
Fix output_image_wasm. (Formerly did not handle pre-existing output i…
JustAnotherCodemonkey Aug 3, 2023
b5de6a1
Make a multiline comment be made of single lines to be more ideomatic.
JustAnotherCodemonkey Aug 3, 2023
d0448e7
"Fix" more multiline comments. I think this is actually the last of t…
JustAnotherCodemonkey Aug 3, 2023
98ecd7f
Make the window a consistant, square size that's convenient for viewing.
JustAnotherCodemonkey Aug 4, 2023
abb0bd1
Make the window on uniform-values not endlessly poll, taking up 100% …
JustAnotherCodemonkey Aug 4, 2023
8b55b05
Make execute in hello-synchronization return a struct of vecs instead…
JustAnotherCodemonkey Aug 19, 2023
a9e90c6
Didn't realize the naming of wgpu_example::framework so I moved my co…
JustAnotherCodemonkey Aug 19, 2023
6e12498
Add add_web_nothing_to_see_msg function to replace all the instances …
JustAnotherCodemonkey Sep 3, 2023
fe49dc7
Add small documentation to add_web_nothing_to_see_msg and change it t…
JustAnotherCodemonkey Sep 3, 2023
d87cc1a
Add documentation to output_image_native and output_image_wasm in exa…
JustAnotherCodemonkey Sep 3, 2023
7d4c952
Do better logging for output image functions in wgpu-example::utils.
JustAnotherCodemonkey Sep 3, 2023
5eaa9e7
Remove redundant append_child'ing of the output image element in wgpu…
JustAnotherCodemonkey Sep 3, 2023
03bad9d
Fix error regarding log message for having written the image in wgpu-…
JustAnotherCodemonkey Sep 3, 2023
d71628d
Fmt.
JustAnotherCodemonkey Sep 3, 2023
ea00169
In examples/README.md, re-arrange the examples in the graph to be in …
JustAnotherCodemonkey Sep 4, 2023
773c433
Fix changlog item regarding wgpu-example::utils and the output image …
JustAnotherCodemonkey Sep 4, 2023
8737cbe
Move all the added examples into one changelog item that lists all of…
JustAnotherCodemonkey Sep 4, 2023
83a3c8e
Updated table in examples/README.md with new examples. Added new feat…
JustAnotherCodemonkey Sep 6, 2023
06a7113
Fix inaccurate comment in hello-workgroups/src/shader.wgsl.
JustAnotherCodemonkey Sep 7, 2023
54656c5
Update examples/README.md to include basic descriptions of the basic …
JustAnotherCodemonkey Sep 10, 2023
b037cbf
Remove `capture` example. See changelog entry for reasoning.
JustAnotherCodemonkey Sep 13, 2023
1a14e66
Fix typo in hello-workgroups/shader.wgsl
JustAnotherCodemonkey Sep 21, 2023
abdb200
Change the method of vertex generation in the shader code of render-t…
JustAnotherCodemonkey Sep 21, 2023
ffd1525
Modify/correct message in repeated-compute/main.rs regarding the outp…
JustAnotherCodemonkey Sep 23, 2023
291f11c
Update message in uniform-values/main.rs about writing the app state …
JustAnotherCodemonkey Sep 24, 2023
f2d89c8
Add notice in repeated-compute/main.rs about why async channels are n…
JustAnotherCodemonkey Sep 25, 2023
0a1f2eb
Revise comment in uniform-values/main.rs about why we don't cast the …
JustAnotherCodemonkey Sep 25, 2023
c5e95f5
Change uniform-values to use encase for translating AppState to WGSL …
JustAnotherCodemonkey Oct 2, 2023
f436d21
Merge trunk.
JustAnotherCodemonkey Oct 7, 2023
2c6ff78
Cargo & Clippy: My two best friends.
JustAnotherCodemonkey Oct 7, 2023
f03748d
Add MIT-0 to the list of allowed liscences.
JustAnotherCodemonkey Oct 7, 2023
373ab65
Fix docs for wasm.
JustAnotherCodemonkey Oct 7, 2023
3126657
Merge branch 'trunk' into JustAnotherCodemonkey/add-examples
JustAnotherCodemonkey Oct 7, 2023
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
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ Bottom level categories:

### Added/New Features

#### General

- Empty scissor rects are allowed now, matching the specification. by @PJB3005 in [#3863](https://github.com/gfx-rs/wgpu/pull/3863).

### Documentation
Expand Down Expand Up @@ -91,6 +93,16 @@ Bottom level categories:

### Examples

- Added the following examples: By @JustAnotherCodemonkey in [#3885](https://github.com/gfx-rs/wgpu/pull/3885).
- repeated-compute
- storage-texture
- render-to-texture
- uniform-values
- hello-workgroups
- hello-synchronization
- Created `wgpu-example::utils` module to contain misc functions and such that are common code but aren't part of the example framework. Add to it the functions `output_image_wasm` and `output_image_native`, both for outputting `Vec<u8>` RGBA images either to the disc or the web page. By @JustAnotherCodemonkey in [#3885](https://github.com/gfx-rs/wgpu/pull/3885).
- Removed `capture` example as it had issues (did not run on wasm) and has been replaced by `render-to-texture` (see above). By @JustAnotherCodemonkey in [#3885](https://github.com/gfx-rs/wgpu/pull/3885).

#### General

- Publish examples to wgpu.rs on updates to trunk branch instead of gecko. By @paul-hansen in [#3750](https://github.com/gfx-rs/wgpu/pull/3750)
Expand Down
133 changes: 115 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

115 changes: 77 additions & 38 deletions examples/README.md

Large diffs are not rendered by default.

18 changes: 0 additions & 18 deletions examples/capture/README.md

This file was deleted.

Binary file removed examples/capture/screenshot.png
Binary file not shown.
Loading