Stephen Gutekanst
99de6a5b11
examples: add assets submodule
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-04-24 16:07:59 +00:00
Stephen Gutekanst
77e86f22c5
examples/libs: add zigimg dependency
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-04-24 16:07:59 +00:00
Stephen Gutekanst
8d574e772c
examples: rename texture-light -> advanced-gen-texture-light
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-04-21 04:39:24 -07:00
Stephen Gutekanst
417ec654df
examples: texture-light: zig fmt
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-04-21 04:39:24 -07:00
Stephen Gutekanst
9ec8553cf8
examples: texture-light: more instances, rotate camera by default, make movement independent of frame-rate
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-04-21 04:39:24 -07:00
Stephen Gutekanst
e7609c76a2
examples: texture-light: don't crash on window resize (recreate depth buffer)
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-04-21 04:39:24 -07:00
Stephen Gutekanst
7daff572f3
examples: correct texture size for running on macOS
...
```
mach: found Metal backend on Discrete GPU adapter: Apple M1, Metal driver on macOS Version 12.1 (Build 21C52)
gpu: validation error: Attachment [TextureView] size (width: 640, height: 480) does not match the size of the other attachments (width: 1280, height: 960).
- While validating depthStencilAttachment.
- While encoding [CommandEncoder].BeginRenderPass([RenderPassDescriptor]).
```
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-04-21 04:39:24 -07:00
d3m1gd
45df76bdd8
example: texture and light
2022-04-21 04:39:24 -07:00
Stephen Gutekanst
8137f1a914
examples: zig fmt
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-04-20 23:01:30 -07:00
Johan Forsberg
3b86aa08cc
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>
2022-04-20 23:00:02 -07:00
PiergiorgioZagaria
8f7a20d2e6
examples: fix BlendState for rotating-cube and two-cubes ( #244 )
2022-04-20 10:59:40 -07:00
d3m1gd
6300c85e79
examples: fix blend mode in triangle example ( #240 )
...
Co-authored-by: d3m1gd <mach+d3m1gd@users.noreply.github.com>
2022-04-18 23:50:23 -07:00
PiergiorgioZagaria
3fb59a1e34
examples: add ported two-cubes example ( #228 )
2022-04-17 14:31:52 -07:00
PiergiorgioZagaria
f96bbb453e
examples: add ported rotating-cube example ( #227 )
2022-04-17 13:50:25 -07:00
Stephen Gutekanst
93629022c5
examples: add libs/zmath dependency
...
Helps hexops/mach#222
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-04-17 12:57:59 -07:00
Stephen Gutekanst
6f3864c1f9
examples: boids: make boids calculation framerate independent
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-04-17 10:07:27 -07:00
Andrew Gutekanst
c11d818c89
examples: add license information
2022-04-14 10:46:31 -07:00
Andrew Gutekanst
a7727c6b54
examples: add ported boids example
...
Ported from https://github.com/austinEng/webgpu-samples/
2022-04-14 10:46:31 -07:00
Andrew Gutekanst
9489fe7083
examples: prepare for adding more examples
2022-04-14 10:46:31 -07:00
Silver
adf5332969
app: add resize callback function
2022-04-08 11:03:00 -07:00
Silver
47cd84f8ff
gpu: use packed structs to wrap WebGPU's bitfield enums
2022-04-08 11:03:00 -07:00
Stephen Gutekanst
49f80de6ab
add higher-level app library
...
Fixes hexops/mach#190
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-04-05 00:16:51 -07:00