Ali Chraghi
06ff56b36e
gpu-dawn: strip debug info for release builds
2022-10-20 16:05:42 -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
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
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
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
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
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
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
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
Ali Chraghi
58f7121a3d
all: prefix environment variables with MACH_
2022-10-11 00:59:23 +02:00
mlugg
ec8ced475f
freetype: don't expose harfbuzz directly from freetype pkg
...
This declaration itself was nonsensical, as the file being imported was
from the harfbuzz package (instead users should import harfbuzz
directly). But as well as being nonsensical, this line was occasionally
triggering a stage2 bug which we haven't quite tracked down yet which
seems to be something to do with conflicting modules importing a file.
This issue meant that projects with a specific dependency pattern on
freetype and harfbuzz would sometimes randomly get a nonsensical
compilation error. This change works around that issue for
mach-freetype.
2022-09-30 12:25:19 -07:00
Ali Chraghi
77ee26d54e
freetype: fix compilation errors
2022-09-30 12:24:14 -07:00
Ali Chraghi
82e10f4f28
all: build: thisDir improvements ( #570 )
...
* build:all: thisDir improvements
more performant output, usage code reducement and compileError for wrong usage
* glfw: update deprecated code
2022-09-29 08:41:46 -07:00
LeRoyce Pearson
a8d8fedf95
gamemode: addIncludeDir -> addIncludePath ( #569 )
2022-09-26 19:57:46 -07:00
mlugg
2af8d5025b
freetype/harfbuzz: correct Position struct layout
...
There's an undocumented private field in this struct which wasn't
replicated, meaning getGlyphPositions was returning garbage data.
2022-09-25 10:03:09 -07:00
Ali Chraghi
fcb82345d4
all: build: organize build files and reduce unreachables ( #567 )
2022-09-25 10:02:51 -07:00
Stephen Gutekanst
02ab8f964a
gpu-dawn: CI: correct release publishing
2022-09-20 21:53:01 -07:00
Jakub Konka
6ce4110bac
basisu: pass CrossTarget to static libs
...
If we don't do that, we risk generating an invalid archive format
for the cross-target.
2022-09-20 04:42:38 -07:00
Stephen Gutekanst
87fd2f82f6
sysaudio: add TODO regarding CI tests
2022-09-20 02:30:45 -07:00
Ali Chraghi
fe9ec5ba15
sysaudio: skip most tests
...
until we find a better way to test sysaudio via CI
a usable device may not be in the first index
2022-09-20 02:30:45 -07:00
Ali Chraghi
f750f752ef
gpu: remove pointless and errorful cast
...
happens on 32bit targets
2022-09-20 02:30:45 -07:00
Ali Chraghi
9f6c4bf7b1
build: fix compilation errors
...
this should make linux CI green
2022-09-20 02:30:45 -07:00
Ali Chraghi
f3109b365c
all: update zig version
2022-09-19 20:11:55 -07:00
Ali Chraghi
cd6b7aa714
glfw: pass system sdk options through
2022-09-19 20:11:55 -07:00
Ali Chraghi
cb9fa97b31
sysaudio: move DataCallback into main.zig
2022-09-18 17:09:54 -07:00
Ali Chraghi
2ab3516795
gamemode: use zig build
2022-09-18 17:09:54 -07:00
Cai Bingjun
308d413f09
gpu-dawn: add mirror support for headers.json.gz
2022-09-17 20:22:32 -07:00
Stephen Gutekanst
5e8ab95a74
{gpu-dawn,docs}: add MACH_GITHUB_BASE_URL for using GitHub mirror sites
...
Users in the Chinese mainland find download speeds are too slow and need
an option to use GitHub download mirroring sites like fastgit.org, this
makes it possible to configure that using an environment variable.
See the documentation for more details.
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-09-17 08:49:26 -07:00
Ali Chraghi
f1c74aabe2
glfw: don't reset hints after window creation
...
Closes #201
2022-09-17 07:03:04 -07:00
LeRoyce Pearson
47d1544b64
{mach,sysjs}: put WASM imports into their own namespaces ( #537 )
2022-09-16 16:56:22 -07:00
Diego Arias
73bef9a8c4
glfw: fix implicit function declaration error on clang15
2022-09-14 13:17:09 -07:00
Alexandre Chêne
ebb4b9c2fe
glfw: remove ineffective _ = variable assignment ( #531 )
2022-09-14 10:40:20 -07:00
locriacyber
b8c48d6321
all: remove ineffective _ = variable assignments ( #530 )
...
Lastest Zig complains about this, so they must removed to build.
2022-09-14 09:42:29 -07:00