Commit graph

2768 commits

Author SHA1 Message Date
Ali Chraghi
a27121c00a mach: implement setCursorMode for wasm 2022-10-21 07:43:34 -07:00
Ali Chraghi
3ea1dea4f7
model3d: add m3d implementation / bindings (#589) 2022-10-21 07:42:01 -07:00
Mikkel Gravgaard
2d9b1ffba4
doc: add FAQ details about how to install Vulkan on Linux (#591)
* Add details about Vulkan support in Linux
* doc: add note about how to use OpenGL backend

Co-authored-by: Stephen Gutekanst <stephen.gutekanst@gmail.com>
2022-10-21 07:38:09 -07:00
Release automation
4ff4da0790 gpu-dawn: update to latest binary release 2022-10-21 00:07:09 +00:00
Ali Chraghi
06ff56b36e gpu-dawn: strip debug info for release builds 2022-10-20 16:05:42 -07:00
Stephen Gutekanst
af357c0a8a mach: expose trimesh2d package
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-19 07:30:11 -07:00
Stephen Gutekanst
43e1dcbb50 trimesh2d: clip ears with smallest triangle area first
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-18 13:42:38 -07:00
Stephen Gutekanst
ae699565bb trimesh2d: fix correctness issues, algo correctly implemented
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-18 13:42:38 -07:00
Stephen Gutekanst
6ee405e7c7 dev: add trimesh2d to linter
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-18 13:42:38 -07:00
Stephen Gutekanst
9df6448109 trimesh2d: add library for simple polygon triangulation in linear time
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-18 13:42:38 -07:00
Release automation
d7d0aa116c gpu-dawn: update to latest binary release 2022-10-18 19:33:45 +00:00
Stephen Gutekanst
df60ed1b66 gpu: remove unused file
ref. hexops/mach#580

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-18 10:21:03 -07:00
Stephen Gutekanst
802b7cd6b0 gpu-dawn: do not build webgpu.h Dawn symbols in by default
Helps hexops/mach#580

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-18 09:40:25 -07:00
Release automation
1abf5d6c45 gpu-dawn: update to latest binary release 2022-10-17 13:50:58 +00:00
Stephen Gutekanst
d9efca0317 gpu-dawn: do not build webgpu.h symbols in by default
Helps hexops/mach#580

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-17 05:57:34 -07:00
Stephen Gutekanst
e4d15208a5 glfw: expose error handling functions for rare usages
Fixes hexops/mach#586

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-17 05:10:52 -07:00
Stephen Gutekanst
faab08e7f6 CI: correct automatic mach-examples updates
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-17 04:26:49 -07:00
Stephen Gutekanst
06b93b9556 CI: correct automatic mach-examples updates
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-17 04:26:02 -07:00
Stephen Gutekanst
3d0a21c274 CI: correct automatic mach-examples updates
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-17 03:30:10 -07:00
Stephen Gutekanst
cd6abaf84b CI: automate updating of mach-examples
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-17 02:42:35 -07:00
Stephen Gutekanst
1eba5906ae README: update example command, document where to find examples
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-16 13:34:15 -07:00
Stephen Gutekanst
96a9c94922 mach: zig fmt
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-16 12:54:40 -07:00
Stephen Gutekanst
023170352f mach: add optional freetype linking
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-16 12:45:33 -07:00
Stephen Gutekanst
189997c279 {mach,examples}: move examples to github.com/hexops/mach-examples
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-16 12:21:50 -07:00
Release automation
1cbef1f7e1 gpu-dawn: update to latest binary release 2022-10-16 16:28:47 +00:00
Stephen Gutekanst
5516060bb0 gpu-dawn: correct cloning of dawn sources
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-16 08:52:00 -07:00
Stephen Gutekanst
dfb62015f6 gpu-dawn: kick out large submodules from tree
This is a much simpler solution for solving hexops/mach#584

1. We continue using submodules everywhere (at least in the Mach codebase.)
2. `dawn` and `DirectXShaderCompiler` (the only two unwiedly submodules that are not needed by default since we use binary builds) are kicked out of the tree.
3. If you specify `-Ddawn-from-source=true`, `zig build` handles cloning those dependencies for you (using `git clone`, not as submodules.)

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-16 08:30:19 -07:00
Stephen Gutekanst
11df0e286b gpu-dawn: correct fmt of binary_version updates
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-16 08:30:19 -07:00
Stephen Gutekanst
1f777759b3 dev: correct freetype .gitignore generation
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-16 08:30:19 -07:00
Dominic
6cb0d6236f
glfw: fix native import (#583)
Co-authored-by: Ali Chraghi <63465728+alichraghi@users.noreply.github.com>
Co-authored-by: dweiller <4678790+dweiller@users.noreplay.github.com>
Co-authored-by: Stephen Gutekanst <stephen.gutekanst@gmail.com>
2022-10-16 01:19:12 -07:00
Release automation
d1601fd4ca gpu-dawn: update to latest binary release 2022-10-15 15:10:37 +00:00
Stephen Gutekanst
d5570d5a18 examples: document self-hosted compoiler bug
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-15 07:58:07 -07:00
Stephen Gutekanst
72ddde2529 glfw: remove self-hosted compiler workaround
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-15 07:56:18 -07:00
Stephen Gutekanst
dad8757d3a ecs: remove stage1 compiler bug workaround
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-15 07:55:15 -07:00
Stephen Gutekanst
1e87b2b78a mach: ecs now builds with self-hosted compiler
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-15 07:54:29 -07:00
Stephen Gutekanst
373179f664 glfw: remove self-hosted compiler workaround
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-15 07:51:52 -07:00
Stephen Gutekanst
9cfefbbff2 gpu-dawn: CI: fix automatic version updates
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-15 07:33:45 -07:00
Stephen Gutekanst
c3ab13e7d9 gpu-dawn: CI: update action to use env files
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-15 07:29:40 -07:00
Stephen Gutekanst
373c55894f {dev,gpu-dawn}: add yamlfmt to ci-lint.sh
Fixes hexops/mach#430

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-15 04:04:57 -07:00
Stephen Gutekanst
a0507bc278 CI: test wasm32-freestanding separately
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-15 01:09:43 -07:00
Stephen Gutekanst
03590dede5 glfw: workaround self-hosted compiler bug
Helps hexops/mach#581

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-15 00:57:35 -07:00
Stephen Gutekanst
e0e0a6d0bb mach: update wasm root.panic signature for latest Zig version
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-14 17:58:34 -07:00
Stephen Gutekanst
78cf48e022 examples: fix cubemap compilation
self-hosted compiler picked up alignment issues better.

fixes hexops/mach#578

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-14 11:20:47 -07:00
Martin Wickham
78dfa2df6b mach: add setCursorMode (desktop only for now) 2022-10-14 09:23:49 -07:00
Stephen Gutekanst
2c65845aed all: CI: update to latest Zig 0.10.0-dev.4333+f5f28e0d2
Produced via:

```
ZIG_VERSION=0.10.0-dev.4333+f5f28e0d2 ./dev/update-zig.sh
```

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-14 09:00:45 -07:00
Kami Development
622a9f4d86
glfw: fix compilation with latest zig master (#574)
See 0b1dd845d9
2022-10-14 08:55:15 -07:00
Stephen Gutekanst
a977393648 freetype: update to latest upstream revision
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-14 08:31:01 -07:00
Stephen Gutekanst
c94dee263b mach: correct WebGPU C ABI export
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-11 01:06:59 +02:00
Ali Chraghi
58f7121a3d all: prefix environment variables with MACH_ 2022-10-11 00:59:23 +02:00
Ali Chraghi
288299b88b examples: make sure some structs has guaranteed in-memory layout 2022-10-11 00:59:23 +02:00