Commit graph

37 commits

Author SHA1 Message Date
Stephen Gutekanst
d57a6d3b6d sysaudio: remove xcode_frameworks submodule
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-07-06 23:26:56 -07:00
Stephen Gutekanst
2a99c85060 glfw: remove system_sdk dependency; add xcode-frameworks
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-07-03 21:18:53 -07:00
Stephen Gutekanst
0c3046afd0 gpu-dawn: add xcode-frameworks dependency
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-07-03 20:15:01 -07:00
Stephen Gutekanst
4142930bde sysaudio: add xcode-frameworks dependency
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-07-03 16:16:21 -07:00
Stephen Gutekanst
d1404e782f all: use mach-basisu via github.com/hexops/mach-basisu
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-07-02 11:47:27 -07:00
Stephen Gutekanst
6ff702552a basisu: fix upstream git submodule location (helps #761)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-04-25 15:06:11 -07:00
Stephen Gutekanst
894b06f01d glfw: move glfw upstream submodule in preparation of Zig package manager
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-04-05 03:49:50 -07:00
Stephen Gutekanst
ee2ee13541 freetype: bury the bodies
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-04-02 10:12:48 -07:00
Ali Chraghi
0f3e28bc2a sysaudio: rewrite in zig
removes libsoundio dependency
2022-12-18 18:02:31 -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
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
5be9f04d85 {build,wasmserve}: use wasmserve, drop apple_pie 2022-09-14 12:32:03 -07:00
NewbLuck
f15cea9492
examples: add cubemap example (#523)
Co-authored-by: Scott Johnson <scott.johnson@furniturerow.com>
2022-09-09 22:41:24 -07:00
Stephen Gutekanst
0645429df9 all: move standalone libraries to libs/ subdirectory
The root dir of our repository has grown quite a lot the past few months.

I'd like to make it more clear where the bulk of the engine lives (`src/`) and
also make it more clear which Mach libraries are consumable as standalone projects.

As for the name of this directory, `libs` was my first choice but there's a bit of
a convention of that being external libraries in Zig projects _today_, while these
are libraries maintained as part of Mach in this repository - not external ones.

We will name this directory `libs`, and if we have a need for external libraries
we will use `external` or `deps` for that directory name. I considered other names
such as `components`, `systems`, `modules` (which are bad as they overlap with
major ECS / engine concepts), and it seems likely the official Zig package manager
will break the convention of using a `libs` dir anyway.

Performed via:

```sh
mkdir libs/
git mv freetype libs/
git mv basisu libs/
git mv gamemode libs/
git mv glfw libs/
git mv gpu libs/
git mv gpu-dawn libs/
git mv sysaudio libs/
git mv sysjs libs/
git mv ecs libs/
```

git-subtree-dir: glfw
git-subtree-mainline: 0d5b853443
git-subtree-split: 572d1144f11b353abdb64fff828b25a4f0fbb7ca

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>

git mv ecs libs/

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-26 15:12:04 -07:00
Ali Chraghi
4a0802639c
basisu: add bindings for basis-universal (supercompressed textures) (#477) 2022-08-25 03:56:06 -07:00
Stephen Gutekanst
bc5e2fe9bf examples: workaround change in @embedFile not working with relative paths
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-20 22:48:19 -07:00
Stephen Gutekanst
9b30005283 gpu-dawn: update Dawn to latest revision as of 2022-08-06
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-06 20:16:28 -07:00
Stephen Gutekanst
55cac7efee gpu-dawn: update to latest upstream revision as of 2022-07-10
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-06 01:17:54 -07:00
alichraghi
f8f4dcf55f audio: rename to 'sysaudio' 2022-07-13 01:31:08 -07:00
alichraghi
0980ba838a audio: init 2022-06-28 21:57:13 -07:00
Stephen Gutekanst
214d4cfd6a glfw: upgrade to GLFW@master; add upstream submodule https://github.com/hexops/glfw
This upgrades us to the latest master (pre-release) version of GLFW which has our patches
for undefined behavior in Zig, effectively moving us off of our temporary fork. We now track
GLFW upstream at the revision documented in https://github.com/hexops/glfw/blob/main/VERSION

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
Co-authored-by: Cai Bingjun <1945458160@qq.com>
2022-06-11 17:39:25 -07:00
iddev5
cc700d79dd tools: Add apple_pie dependency 2022-05-27 21:08:10 -07:00
Stephen Gutekanst
045dda287d freetype: add upstream submodule
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-24 11:55:07 -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
Stephen Gutekanst
69049da970 correct submodule remote
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-04-24 20:14:51 -07: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
53e57e8e78
gpu-dawn: update Dawn to latest revision as of 2022-04-21 (#250)
upstream @ c2f9fea56bee11cf573fe90b08a296a38202500b

Includes fix for UB on Linux/Vulkan: https://github.com/hexops/dawn/pull/11

Closes hexops/mach#239

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-04-21 23:58:21 -07:00
Stephen Gutekanst
a127378b19 gpu-dawn: update Dawn to latest revision as of 2022-04-18
Effectively a redo of hexops/mach#231 where I messed up the submodule update by accident.

Updates Dawn to latest revision as of 2022-04-18 c7b7b6def6

* Followed https://github.com/hexops/dawn/tree/main/mach#updating
* The UB issue should now actually get fixed (once CI builds the binary releases.)
* Verified example runs on macOS.

Helps hexops/mach#221

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-04-18 11:38:32 -07:00
Stephen Gutekanst
e673e6c5d4
gpu-dawn: update Dawn to latest revision as of 2022-04-17 (#231)
Updates Dawn to latest revision as of 2022-04-17 69daaab759

* Followed https://github.com/hexops/dawn/tree/main/mach#updating
* Includes a fix for UB issue https://github.com/hexops/dawn/pull/9 (I will send a CL for this upstream soon.)
* Verified examples run on macOS (other OSes will get built by CI and verified later)

Closes hexops/mach#221

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-04-17 23:39:34 -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
9db68d421f gpu-dawn: update to latest Dawn + windows patches
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-03-04 19:54:06 -07:00
Stephen Gutekanst
9ac5b603a2 gpu-dawn: add libs/DirectXShaderCompiler submodule / minor fork
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-03-04 16:05:47 -07:00
Stephen Gutekanst
86d7c7ce11 gpu-dawn: update libs/dawn to generated-2022-02-17
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-18 01:36:37 -07:00
iddev5
ad8e1a4292 gpu-dawn: Fix building after the rename of gpu -> gpu-dawn 2021-12-24 00:52:59 -07:00
Stephen Gutekanst
484f768c0a webgpu: rename to just "gpu"
It's nicer to refer to this in code as `gpu`. Additionally, `webgpu` as a name
gives the impression this is for web only which is absolutely not true but could
understandably be very confusing to newcomers.

Solve both problems by renaming to just `gpu`, and (next) updating the README to
indicate what it does and why, then explain it's WebGPU after as more of an
implementation detail.

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-11-21 08:32:03 -07:00
Stephen Gutekanst
564248c09b webgpu: add libs/dawn submodule
This is a fork of Dawn which has generated sources comitted to the repo so that depot_tools,
ninja, gn, etc. are not needed.

It also enables us to track a specific version of Dawn and ensure it's compatible with our
bindings, etc.

https://github.com/hexops/dawn

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-11-21 08:32:03 -07:00