Stephen Gutekanst
919499327e
gpu: update README, add TODO-webgpu.h
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00
Stephen Gutekanst
2174936469
gpu: prepare for full-scale rewrite of library
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00
Stephen Gutekanst
9d05e7c656
glfw: collapse/hide Gyro instructions by default to avoid confusion
2022-08-11 05:10:36 -07:00
Release automation
98a61dc01c
gpu-dawn: update to latest binary release
2022-08-08 05:43:06 +00:00
Stephen Gutekanst
9a039524a8
glfw: update Vulkan headers
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-07 22:05:00 -07:00
Stephen Gutekanst
d4fb7bf42a
gpu-dawn: fix duplicate symbol main on x86_64-linux
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-07 22:04:54 -07:00
Stephen Gutekanst
8651d16011
glfw: update Linux system SDKs (update vulkan-headers to v1.3.224)
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-06 21:39:49 -07:00
Stephen Gutekanst
ebdc09bfa1
glfw: update Windows system SDK for Dawn compilation (reduce rpcndr_hack)
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-06 20:16:28 -07:00
Stephen Gutekanst
38ebec0a1f
gpu-dawn: build: update to latest Dawn revision
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-06 20:16:28 -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
5aa692b4e5
gpu-dawn: workaround missing pthread issue in abseil-cpp
...
abseil-cpp now depends on `pthread.h`, it previously didn't. But this appears to
be a bug in abseil of sorts, because if you have `ABSL_FORCE_THREAD_IDENTITY_MODE` set
to `ABSL_THREAD_IDENTITY_MODE_USE_CPP11` it doesn't appear to be used/needed.
[Zig doesn't ship with pthread for the MinGW / `x86_64-windows-gnu` target](https://github.com/ziglang/zig/issues/10989 ),
and so the header is missing - but we don't actually need it, so we just add an
empty file to prevent the missing include error.
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-06 20:16:28 -07:00
LeRoyce Pearson
f4611e1414
mach: add headless option ( #450 )
...
Co-authored-by: Stephen Gutekanst <stephen.gutekanst@gmail.com>
2022-08-06 19:38:04 -07:00
Ali Chraghi
2045142057
build: remove gpu-dawn test step
2022-08-06 08:20:18 -07:00
Ali Chraghi
b5d8c669a2
CI: remove unneeded builds on sub-projects
2022-08-06 08:20:18 -07:00
Stephen Gutekanst
4bf9fc5821
glfw: update Linux system SDKs for Vulkan v1.3 headers
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-06 03:19:39 -07:00
Stephen Gutekanst
7df31b6d38
glfw: update Linux system SDKs for newer Vulkan headers
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-06 02:40:08 -07:00
Stephen Gutekanst
fbfd2f336b
remove Zig example in favor of mach/gpu one
...
`mach/gpu` has an example of how to use the bindings: https://github.com/hexops/mach/tree/main/gpu/examples
The example here is largely duplicative of that, and doesn't currently build. It would need to be updated
to reflect the latest Dawn example code.
Instead, let's keep `mach/gpu-dawn` just scoped to building Dawn with Zig. `mach/gpu` will deal with using it.
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-06 01:46:19 -07:00
Stephen Gutekanst
0e68ba36eb
gpu-dawn: remove Mach C shims
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-06 01:25:52 -07:00
Stephen Gutekanst
70ee58c904
gpu-dawn: update build.zig to build latest version of Dawn
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-06 01:18:01 -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
Stephen Gutekanst
36539d7c3d
glfw: fix -fno-stage1 thisDir invocations
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-05 22:24:57 -07:00
PiergiorgioZagaria
00ef0a639e
gamemode: Fix gamemode package path in build.zig
2022-08-03 11:01:31 -07:00
Casey Banner
0b187c44db
glfw: add shared option which builds glfw into its own shared library ( #442 )
...
* Add shared option which builds glfw into it's own shared library
* glfw: separate shared test build step
* glfw: cleanup shared linking
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
Co-authored-by: Stephen Gutekanst <stephen@hexops.com>
2022-07-31 13:56:13 -07:00
Release automation
e6d7faaaba
gpu-dawn: update to latest binary release
2022-07-30 17:54:01 +00:00
Stephen Gutekanst
9cffe5ac8b
glfw: add assumeInitialized for external GLFW initialization
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-07-30 10:18:47 -07:00
PiergiorgioZagaria
6eaacde444
gamemode: Add linux_gamemode_is_active field to Platform
2022-07-28 04:12:25 -07:00
PiergiorgioZagaria
2612684ef3
gamemode: Fix root build.zig test with symlinks
2022-07-28 04:12:25 -07:00
PiergiorgioZagaria
d84a32363c
gamemode: add check for GAMEMODE env var equal false
2022-07-28 04:12:25 -07:00
PiergiorgioZagaria
76bf493a86
gamemode: Small fix for initLinuxGamemode()
2022-07-28 04:12:25 -07:00
PiergiorgioZagaria
80270a5cfc
gamemode: Move gamemode init and deinit into their own functions
2022-07-28 04:12:25 -07:00
PiergiorgioZagaria
bd68745106
gamemode: Add licenses
2022-07-28 04:12:25 -07:00
PiergiorgioZagaria
4ee9ba1000
gamemode: Fix overcomplications and @import with symlinks
2022-07-28 04:12:25 -07:00
PiergiorgioZagaria
38a44ea3b3
gamemode: Remove gamemode *.c files for building from source
2022-07-28 04:12:25 -07:00
PiergiorgioZagaria
d256d071e0
gamemode: WIP building gamemode from source
2022-07-28 04:12:25 -07:00
PiergiorgioZagaria
613f03ef13
gamemode: Add common helpers to build gamemode
2022-07-28 04:12:25 -07:00
PiergiorgioZagaria
509ebd13ab
mach: Initial commit for gamemode
2022-07-28 04:12:25 -07:00
Ali Chraghi
25b6288efe
sysjs: pass target to testStep
2022-07-28 01:53:56 -07:00
Ali Chraghi
eecbad403c
dev: add other workflows to ci-lint.sh
...
Co-authored-by: Stephen Gutekanst <stephen@hexops.com>
2022-07-27 10:25:59 -07:00
Ali Chraghi
b500b04c41
all: build: install tests exe
2022-07-25 11:21:37 -07:00
Ali Chraghi
a6a678b912
freetype: install test exe and move all tests to src/main.zig
2022-07-25 11:21:37 -07:00
Ali Chraghi
956e07b2ba
glfw: build: produce static library
2022-07-24 09:28:56 -07:00
Ali Chraghi
3206fb69ab
freetype: build: produce static library and don't install examples in
...
install step
2022-07-24 09:28:56 -07:00
Ali Chraghi
a8427dcb4b
CI: fix and fmt
...
install alsa lib on linux platform
2022-07-24 09:28:56 -07:00
Ali Chraghi
1b9607be3f
dev: add ci-lint.sh script
2022-07-24 09:28:56 -07:00
Stephen Gutekanst
1356cdd838
all: zig fmt
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-07-22 19:43:41 -07:00
Stephen Gutekanst
5466375f40
glfw: fix caching bug in system_sdk that prevents cross-compilation in some situations
...
Prior to this change, cross-compiling Mach to other OSes was not working due to a regression.
e.g. to windows:
```
zig build -Dtarget=x86_64-windows run-example-boids
LLD Link... error(link): DLL import library for -ldxguid not found
error: DllImportLibraryNotFound
error: example-boids...
```
The problem was that one build step may invoke `getSdkRoot` and the target might be for say macOS,
since it's building e.g. GLFW for macOS as the target of tests, and `getSdkRoot` would cache the
SDK root _forever_ as being the macOS SDK (in an attempt to avoid running the various git commands
needed to resolve the SDK root multiple times, which slows builds down.)
We instead need to cache the SDK root per step, because the target may not be the same.
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-07-22 19:30:59 -07:00
Ali Chraghi
001e191e5c
freetype: Implement needed Computation API
2022-07-22 17:49:25 -07:00
Ali Chraghi
30612500e0
freetype: update examples
...
compile error due the last functions rename
2022-07-22 17:49:25 -07:00
alichraghi
0aa9cc4a04
freetype: Bitmap Handling 100% Coverage
2022-07-22 17:49:25 -07:00
Stephen Gutekanst
fbc9cee4cc
libmach: respect build target / mode flags
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-07-21 19:41:33 -07:00