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

@ -0,0 +1,6 @@
@stage(fragment) fn main(
@location(0) fragUV: vec2<f32>,
@location(1) fragPosition: vec4<f32>
) -> @location(0) vec4<f32> {
return fragPosition;
}