examples: add instanced-cube example (#246)
add example based on webgpu-samples' instancedCube sample. Signed-off-by: Stephen Gutekanst <stephen@hexops.com> Co-authored-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
8f7a20d2e6
commit
3b86aa08cc
6 changed files with 299 additions and 0 deletions
|
|
@ -32,6 +32,7 @@ pub fn build(b: *std.build.Builder) void {
|
|||
.{ .name = "boids" },
|
||||
.{ .name = "rotating-cube", .packages = &[_]Pkg{Packages.zmath} },
|
||||
.{ .name = "two-cubes", .packages = &[_]Pkg{Packages.zmath} },
|
||||
.{ .name = "instanced-cube", .packages = &[_]Pkg{Packages.zmath} },
|
||||
}) |example| {
|
||||
const example_exe = b.addExecutable("example-" ++ example.name, "examples/" ++ example.name ++ "/main.zig");
|
||||
example_exe.setTarget(target);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue