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:
Johan Forsberg 2022-04-21 08:00:02 +02:00 committed by GitHub
parent 8f7a20d2e6
commit 3b86aa08cc
Failed to generate hash of commit
6 changed files with 299 additions and 0 deletions

View file

@ -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);