Commit graph

2513 commits

Author SHA1 Message Date
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
Dustin Taylor
cc301493ca mach: 0 size swapchain noop fix 2022-09-25 10:01:03 -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
8026526b99 mach: add TODO about self-hosted unused variables 2022-09-20 02:30:45 -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
728582c75e build: only build/run tests and libmach on non-wasm targets 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
18ad648e68 ci: only run at base directory
we don't have to build almost the same thing twice
2022-09-20 02:30:45 -07:00
Ali Chraghi
1a6a82e11b build: ensure cubemap assets submodule 2022-09-20 02:30:45 -07:00
Ali Chraghi
8e012d02bb git: use stage2_compat branch for zigimg
slimsag/zigimg had pointless discard errors
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
62e00bfbd0 dev: fix zig version update script 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
2811904eac mach: check Platform functions declaration & add deinit for wasm 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
Stephen Gutekanst
12c8d9ae8a mach: correct Wayland comment
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-09-19 06:57:16 -07:00
Ali Chraghi
cb9fa97b31 sysaudio: move DataCallback into main.zig 2022-09-18 17:09:54 -07:00
Ali Chraghi
936ad7bffc tools/html-generator: fix name zig->sysjs 2022-09-18 17:09:54 -07:00
Ali Chraghi
2ab3516795 gamemode: use zig build 2022-09-18 17:09:54 -07:00
Ali Chraghi
15dfb2867a all: rename setShouldClose to close
Closes #550
2022-09-18 09:50:15 -07:00
Cai Bingjun
308d413f09 gpu-dawn: add mirror support for headers.json.gz 2022-09-17 20:22:32 -07:00
Stephen Gutekanst
412df4490c mach: fmt
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-09-17 08:50:25 -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
Ali Chraghi
6043c7eae6
mach: add is_app option to disable gamemode in desktop applications; use parseIp4 (#544)
* mach: add `is_app` option to disable gamemode in desktop applications
* use parseIp4 instead of resolveIp (which throws a compile error in windows)
2022-09-16 23:32:27 -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
eef76effe3 examples: add pixel post processing effect example 2022-09-16 16:49:20 -07:00
Louis Pearson
6183e39593
mach: add {s} formatter to mouse cursor debug print (#539)
* Fix setMouseCursor compile error
2022-09-16 16:42:19 -07:00
Jeremia
7ed8829349
mach: better compile error for missing fields in App. (#548)
Stage2 Zig ends up coercing structs without any fields into consts.
The current error given is not entirely clear to the cause or how
to fix the issue for users.

Related to https://github.com/ziglang/zig/issues/12275
2022-09-16 16:36:15 -07:00
Ali Chraghi
8b50f076a6 {build,wasmserve}: improvements
build: use parseIp4 instead resolveIp
wasmserve: use ansi_to_html.js instead ansi_up.js
wasmserve: handle build procces unexpected exits and more
2022-09-15 07:42:59 -07:00
praschke
b0cd4ec1a0
all: fix pointless discards; typo; fix libmach compilation on Linux (#541) 2022-09-15 07:41:05 -07:00
praschke
38c4fc5b01 mach: make default minimum window size 350x350 2022-09-15 07:39:38 -07:00
praschke
a873227ab8 {mach,examples,shaderexp}: fix default minimum window size 2022-09-15 07:39:38 -07:00
Louis Pearson
9676665ccf
mach: fix setMouseCursor compile error (#538) 2022-09-14 18:15:41 -07:00
Diego Arias
73bef9a8c4 glfw: fix implicit function declaration error on clang15 2022-09-14 13:17:09 -07:00
Ali Chraghi
aaddd4dbeb {build,wasmserve}: show error on browser + improvements 2022-09-14 12:32:03 -07:00
Ali Chraghi
5be9f04d85 {build,wasmserve}: use wasmserve, drop apple_pie 2022-09-14 12:32:03 -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
Stephen Gutekanst
98d929611c gpu-dawn: add CURL_INSECURE=true option to workaround windows SSL issues
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-09-12 20:45:24 -07:00
Stephen Gutekanst
23f9e9fb65 gpu: README: fix image size, clarify Mach core
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-09-11 09:52:55 -07:00
Stephen Gutekanst
b0ea3b9e44 dev: add mach-gpu to push_subrepos.sh
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-09-11 09:46:25 -07:00
Stephen Gutekanst
dd1b0a413e gpu: polish README
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-09-11 09:44:43 -07:00
Stephen Gutekanst
8af0c9a6a8 mach: correctly link sysaudio to all Apps
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-09-11 00:17:52 -07:00
Stephen Gutekanst
8113ca370d all: remove support for stage1
With almost all tests/examples working on all platforms now with the new compiler,
https://github.com/hexops/mach/issues/180, it's time to remove stage1 support.

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-09-10 00:09:30 -07:00
Stephen Gutekanst
4c3a19fc26 sysjs: improve self-hosted compiler support
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-09-09 23:37:50 -07:00