examples: add example of instancing. #246

Merged
johanfforsberg merged 4 commits from add-instancing-example into main 2022-04-21 06:00:02 +00:00
johanfforsberg commented 2022-04-20 20:56:57 +00:00 (Migrated from github.com)

I pieced together this example from the "rotating-cube" example in this repo, with hints from https://github.com/austinEng/webgpu-samples/tree/main/src/sample/instancedCube .

It works on my computer, at least. I'm completely new to webgpu and I'm doing this mainly as a way to learn. Feedback appreciated!

  • By selecting this checkbox, I agree to license my contributions to this project under the license(s) described in the LICENSE file, and I have the right to do so or have received permission to do so by an employer or client I am producing work for whom has this right.
I pieced together this example from the "rotating-cube" example in this repo, with hints from https://github.com/austinEng/webgpu-samples/tree/main/src/sample/instancedCube . It works on my computer, at least. I'm completely new to webgpu and I'm doing this mainly as a way to learn. Feedback appreciated! - [x] By selecting this checkbox, I agree to license my contributions to this project under the license(s) described in the LICENSE file, and I have the right to do so or have received permission to do so by an employer or client I am producing work for whom has this right.
emidoots commented 2022-04-21 05:36:45 +00:00 (Migrated from github.com)

Nice work! It runs on my macbook too :)

I pushed a few commits for some very minor cleanup, running zig fmt, etc. but overall looks good to me!

Cool if I list you as a contributor at e.g. https://machengine.org/gpu/ ?

Nice work! It runs on my macbook too :) I pushed a few commits for some very minor cleanup, running zig fmt, etc. but overall looks good to me! Cool if I list you as a contributor at e.g. https://machengine.org/gpu/ ?
emidoots (Migrated from github.com) approved these changes 2022-04-21 05:36:53 +00:00
johanfforsberg commented 2022-04-21 07:25:35 +00:00 (Migrated from github.com)

Thanks, I'd be happy to be listed as a contributor!

Thanks, I'd be happy to be listed as a contributor!
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
hexops/mach!246
No description provided.