Commit graph

2638 commits

Author SHA1 Message Date
Beau McCartney
7d04252126
mach: remove compiler error for missing field in app (upstream issue fixed) (#647)
* platform: allow fieldless App
* platform: remove unused field

Co-authored-by: Beau McCartney <beau@beaumccartney.xyz>
2022-12-25 13:37:23 -07:00
Ali Chraghi
5849304fba all: update zig version 2022-12-25 13:36:03 -07:00
Ali Chraghi
b2a1f6d55f readme: update 2022-12-25 13:36:03 -07:00
Ali Chraghi
7df12a0cae sysjs: automatically cast numbers to f64 & remove dead code 2022-12-25 13:36:03 -07:00
Ali Chraghi
2de36ad75b wasmserve: execute zig with acutal args 2022-12-25 13:36:03 -07:00
Ali Chraghi
061daa790f ci: remove compile-all step
examples are moved to a separate repo and `zig build` does the same
2022-12-25 13:36:03 -07:00
Ali Chraghi
f9b3ac2106 sysaudio: add webaudio backend 2022-12-25 13:36:03 -07:00
Benjaaaa
052d3a7da8
mach: fix compiler error regarding zig changes (#645) 2022-12-25 13:19:48 -07:00
citruslee
0e67b92676
mach: fix compiler error about missing field_type (#644) 2022-12-22 11:50:26 -07:00
Stephen Gutekanst
997f38bd0c Revert "gpu-dawn: update to latest binary release"
This reverts commit c3e05651bd.

Our M1 runner is not active right now due to the work going on with
Wrench, so this gpu-dawn version is missing macos-aarch64 builds at
the moment.
2022-12-22 11:01:46 -07:00
Release automation
c3e05651bd gpu-dawn: update to latest binary release 2022-12-19 02:03:53 +00:00
Ali Chraghi
ccc938e757 ci: install pulseaudio and jack servers 2022-12-18 18:02:31 -07:00
Ali Chraghi
dc3f4b4c00 sysaudio:wasapi: wait for audio client to be ready 2022-12-18 18:02:31 -07:00
Ali Chraghi
a3d23b199d system_sdk: update to latest commits 2022-12-18 18:02:31 -07:00
Ali Chraghi
457986bb33 mach: fix compilation on latest zig 2022-12-18 18:02:31 -07:00
Ali Chraghi
3b162fdd7c all: update zig version 2022-12-18 18:02:31 -07:00
Ali Chraghi
0f3e28bc2a sysaudio: rewrite in zig
removes libsoundio dependency
2022-12-18 18:02:31 -07:00
Aaron Winter
8aa2c97079
ecs: improve formatting (#643) 2022-12-18 03:21:11 -07:00
Keith Chambers
c9793a4666
glfw: update to zig 0.11.0-dev.811 (#640) 2022-12-15 16:47:19 -07:00
BratishkaErik
b1191cbeb5
{mach,gpu}: more undef/nul -> undefined/null renames (#638)
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2022-12-14 18:20:11 -07:00
Keith Chambers
81fce62133
freetype: fix incorrect font path in embedFile (#636) 2022-12-14 02:19:34 -07:00
Eric Joldasov
e832784e6b mach: use null and undefined in enums
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2022-12-14 02:18:21 -07:00
Eric Joldasov
37b7d32485 sysjs: use null and undefined in enums
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2022-12-14 02:18:21 -07:00
Eric Joldasov
3397497cc9 sysaudio: use undefined in enums
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2022-12-14 02:18:21 -07:00
Eric Joldasov
441b7641b5 glfw: use null in enums
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2022-12-14 02:18:21 -07:00
Eric Joldasov
94ba8338f5 gpu: use null and undefined in enums
Closes #626
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2022-12-14 02:18:21 -07:00
Aaron Winter
ef05d8ca69
mach: toOwnedSlice now returns an error union that needs to be handled (#635) 2022-12-10 15:26:16 -07:00
Keith Chambers
c151222011
mach: VertexWriter fixes (#633)
* mach: VertexWriter fixes
* mach: Reference decls in gfx
* remove comptime block from refAllDecls as is redundant
2022-11-30 09:27:00 -07:00
Keith Chambers
f331597bc2
mach: gfx: Add VertexWriter (#630) 2022-11-28 22:29:50 -07:00
Aaron Winter
72ef60c8c2
ecs: fix segfault in Entities.deinit (#629)
Co-authored-by: Aaron Winter <wintera@Aarons-MacBook-Pro.local>
2022-11-26 20:53:44 -07:00
Aaron Winter
a06ac6356d
ecs: rename sort function to be camelCase (#628)
Co-authored-by: Aaron Winter <wintera@Aarons-MacBook-Pro.local>
2022-11-26 20:42:15 -07:00
Stephen Gutekanst
568d0155fd system-sdk: use macOS 12 SDK for macOS 13 for now
Fixes hexops/mach#606

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-11-25 10:31:04 -07:00
Stephen Gutekanst
3f51ef6fde gpu: make it easier to query Device/Adapter limits correctly
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-11-24 09:55:18 -07:00
Stephen Gutekanst
661ac75a31 glfw: zig fmt (true and false no longer reserved names)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-11-24 09:55:07 -07:00
David Vanderson
305fa7fa35
freetype: add option to build using separate zlib (#621) 2022-11-22 10:22:10 -07:00
Slava Mostovoy
9b9852b56e
sysaudio: add ability to provide system_sdk options (#619) 2022-11-20 11:45:07 -07:00
Keith Chambers
cb011d961b
mach: fix missing param when linking model3d (#617) 2022-11-14 18:15:16 -07:00
Stephen Gutekanst
c96ff64958 model3d: disable alignment sanitizer for all of model3d
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-11-14 18:14:35 -07:00
Keith Chambers
d21cce37a4
model3d: set cross-target when compiling statically (#616)
This is required for building with a non-native target, otherwise library is build for the native platform and attempts to link fail
2022-11-14 17:53:48 -07:00
Stephen Gutekanst
917b0eb8be model3d: disable UBSan alignment sanitization on m3d_load
Works around: https://gitlab.com/bztsrc/model3d/-/issues/19

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-11-14 16:52:36 -07:00
dasimmet
caafb26fe4
mach: add option to set the monitor index on fullscreen (#611)
* add option to set the monitor index on fullscreen
* make monitor index optional

Co-authored-by: Tobias Simetsreiter <tobias.simetsreiter@meliot.de>
2022-11-14 15:46:42 -07:00
Keith Chambers
731e2b1287
{mach,model3d}: link model3d as static lib instead of adding C files to build step (#613)
This allows the library to link better with projects. Otherwise you can end up with a mix of conflicts over that compiler + version to use.

Also adds .use_model3d option to mach build system. If set to true, model3d will be linked in statically to target project.
2022-11-14 15:43:53 -07:00
Cai Bingjun
005a99a323
gitattributes: update linguist-vendored C code marking (#612) 2022-11-13 17:40:36 -07:00
Stephen Gutekanst
d694b8031a glfw: ensure Window.from handle is untyped
Since users of the library do not have access to the `@cImport` struct (and we
do not want to expose that), the user may pass only an untyped `*anyopaque` pointer
which we'll internally cast to `*c.GLFWwindow`.

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-11-06 15:02:57 -07:00
Stephen Gutekanst
2d705a8c3e earcut: fix inverted conditional in z-order index curve hashing
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-11-06 13:42:59 -07:00
Stephen Gutekanst
8b44cfe49b earcut: fix integer overflow in z-order curve hash codepath
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-11-06 13:36:22 -07:00
Stephen Gutekanst
212c902747 mach: test ResourceManager
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-11-05 14:12:56 -07:00
Stephen Gutekanst
18bc25502b mach: update mach-test dependencies
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-11-05 13:32:50 -07:00
Stephen Gutekanst
030cbf71a1 mach: resource: update function pointer declarations
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-11-05 13:32:18 -07:00
Stephen Gutekanst
f59860cea5 earcut: fix potential integer underflow
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-11-05 13:30:39 -07:00