iddev5
1f95bd48df
examples: use engine.core.setKeyCallback() instead of accessing glfw directly
2022-05-09 08:08:01 -07:00
PiergiorgioZagaria
a1daf399a3
examples: created gkurve example
2022-05-08 15:02:39 -07:00
PiergiorgioZagaria
ddf8704559
examples: fixed uniform buffer release and unused var
2022-05-08 09:48:05 -07:00
d3m1gd
09f3adf2b4
examples: fix typo
2022-05-04 11:53:16 -07:00
iddev5
2b978a6883
examples: fix unwanted fractal cube resource releases causing validation error
2022-05-01 11:46:43 -07:00
Lee Cannon
4570838304
Update to latest Zig master (0.10.0-dev.2017+a0a2ce92c) ( #261 )
...
* use `@ceil` instead of `std.math.ceil`
* `ChildProcess.init` does not allocate anymore
* update CI zig version
* examples: temporarily switch to fork of zigimg compatible with zig-master
Commands executed:
```
git submodule set-url -- examples/libs/zigimg https://github.com/slimsag/zigimg
git submodule set-branch --branch zig-master -- examples/libs/zigimg
git submodule update --init --remote examples/libs/zigimg
```
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
Co-authored-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-01 11:44:27 -07:00
iddev5
218a6a5c08
examples: port to new API
2022-04-29 13:06:34 -07:00
iddev5
5249e72408
example: finalize triangle example to new API
2022-04-29 12:48:47 -07:00
iddev5
2aedc4ca01
mach: implement App struct in terms of unified entry point
2022-04-29 12:48:47 -07:00
iddev5
3e87b383d2
examples: workaround fix for testing unified entry point
2022-04-29 12:48:47 -07:00
iddev5
ffcd5dfaa8
examples: fix incorrect release of resources in fractal-cube
2022-04-29 12:45:04 -07:00
PiergiorgioZagaria
d6dad96059
examples: added fractal-cube example
2022-04-24 23:24:34 +00:00
Stephen Gutekanst
d0d0db8725
examples: add textured-cube example
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-04-24 16:07:59 +00:00
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