Joshua Holmes
2f095fdc21
core: send info message about missing features in linux
2024-10-20 19:39:49 -07:00
Joshua Holmes
ea3c520eae
core: use MACH_BACKEND instead of MACH_CORE_BACKEND env var for selecting linux backend
2024-10-20 19:39:49 -07:00
Joshua Holmes
fd04c039c9
core: set wayland as default
2024-10-20 19:39:49 -07:00
Joshua Holmes
9763ce2857
core: fix wayland window size conflict
2024-10-20 19:39:49 -07:00
Joshua Holmes
fcba68282d
core: enable x11 and set as default for linux
2024-10-20 19:39:49 -07:00
Stephen Gutekanst
e3a124f2b1
core: X11: update for build with Zig 2024.10.0-mach
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-10-08 22:11:54 -07:00
Joshua Holmes
c9f13dc003
core: handle x11 events
2024-10-08 13:43:06 -07:00
Joshua Holmes
a791089967
core: get x11 to build
2024-10-08 13:43:06 -07:00
Stephen Gutekanst
26c5cb5d60
update to Zig 2024.10-mach (helps hexops/mach#1276 )
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-10-08 11:42:23 -07:00
Joshua Holmes
8958d9f0de
core: use xkb for keysym to unicode conversion
2024-09-17 10:59:30 -07:00
Joshua Holmes
36280a0980
core: fix linking issues
2024-09-17 10:59:30 -07:00
Joshua Holmes
88d14b5c04
core: get wayland to compile
2024-09-17 10:59:30 -07:00
Joshua Holmes
8eb2da1044
core: disable wayland for now
2024-09-11 09:18:23 -07:00
Joshua Holmes
d65588bc2d
core: setup linux to detect and select x11 or wayland implementation
2024-09-11 09:18:23 -07:00
Joshua Holmes
9ffaddd77a
core: re-implement wayland
2024-09-11 09:18:23 -07:00
Joshua Holmes
f7141c01e2
core: setup x11 shell
2024-09-11 09:18:23 -07:00
Hordur Johannsson
d7d8029523
core: add more keys to Key enum ( #1262 )
2024-08-31 13:24:36 -07:00
Stephen Gutekanst
f548918e13
core: move linux-specific code to Linux.zig
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-25 19:04:37 -07:00
Stephen Gutekanst
cd85a2d623
core: basic Linux structure
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-25 19:00:22 -07:00
Stephen Gutekanst
8447654311
core: move input state tracking from Platform to Core
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-25 18:50:32 -07:00
Stephen Gutekanst
1c0434a948
core: remove verbose comments
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-25 18:21:21 -07:00
Stephen Gutekanst
09d39fb694
core: simplify event iterator
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-25 16:51:16 -07:00
Stephen Gutekanst
2eac60caf1
core: centralize EventQueue and EventIterator declaration
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-25 16:04:25 -07:00
Stephen Gutekanst
1fab277bf7
core: remove unimplemented joystick API
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-25 15:57:18 -07:00
Stephen Gutekanst
19afd254b9
core: restructure code
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-25 15:46:57 -07:00
Stephen Gutekanst
470a84909b
core: more code refactoring / improvements
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-25 15:45:43 -07:00
Stephen Gutekanst
de1275dc0a
core: refactor code structure
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-25 15:38:13 -07:00
Stephen Gutekanst
e3393abbc1
deduplicate win32 bindings
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-25 15:24:24 -07:00
Stephen Gutekanst
133c89638b
all: move mach.Timer, core Timer/Frequency to mach.time module
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-25 14:24:09 -07:00
Hordur Johannsson
13e53e7176
Fixing core to work with win32 #1257
2024-08-25 09:59:08 -07:00
Stephen Gutekanst
17450fde65
core: remove linux support
...
The `mach.Core` API needs major design changes, and every backend that it supports
today must be updated to account for those API design changes. Unless someone is
actively maintaining and improving the state of a given backend, it slows down our
ability to make those critical changes.
Unfortunately, the backends for X11 and Wayland today are half-baked, nobody is
actively maintaining on or contributing to them, and the Linux CI tests have been
broken for over a month as a result which harms overall stability of Mach.
As a result, this PR removes Linux support from `mach.Core`
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-24 23:42:37 -07:00
Stephen Gutekanst
51e996db72
remove unmaintained WASM support
...
Same reasoning as outlined in #1254
> nobody is interested in actively maintaining or contributing to that today.
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-24 23:22:52 -07:00
Stephen Gutekanst
984d4de3bd
core: win32: various improvements ( #1255 )
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
Authored-by: Hordur Johannsson <hordurj@gmail.com>
2024-08-24 23:16:53 -07:00
Stephen Gutekanst
a5a3d31411
core: remove WASM support
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-24 22:33:15 -07:00
Michael Bradshaw
8ea49d1c80
Remove Objective-C dual namespacing
2024-08-23 20:43:38 -07:00
Michael Bradshaw
08f5b84227
Remove runtime Objective-C initialization and dependency on usingnamespace
2024-08-23 20:43:38 -07:00
Stephen Gutekanst
c04a6080b5
core: fix Darwin filepath case
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-19 22:41:58 -07:00
Stephen Gutekanst
66e56f037b
initial macOS backend ( #1249 )
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
Co-authored-by: Michael Bradshaw <github@mjb.io>
2024-08-18 16:45:37 -07:00
Hordur Johannsson
42d2a57611
Changing resource category for textures in d3d12 issue #1225 ( #1226 )
2024-08-07 21:58:59 -07:00
Stephen Gutekanst
6e2f937026
core: add Null backend to show what implementing a backend looks like
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-07-13 15:48:07 -07:00
Hordur Johannsson
c32e763e11
add new win32 platform implementation ( #1224 )
...
* Buffer resources from swap chain were not being released.
* sysgpu Texture.getWidth() should return width not height.
* d3d12: Fixing issues with d3d12 on sysgpu.
* Initial win32 platform
2024-07-13 15:33:45 -07:00
Ali Cheraghi
3fa889b136
core: revive wayland
2024-07-13 09:06:35 -07:00
Ali Cheraghi
266e7a548b
core: refactor
2024-07-13 09:06:35 -07:00
Ali Cheraghi
c254337e4b
{core, build}: remove glfw
2024-07-13 09:06:35 -07:00
Ali Cheraghi
539aadf664
sysgpu: remove everything related to dawn
2024-07-13 09:06:35 -07:00
Stephen Gutekanst
98801a258e
remove Dawn / WebGPU support in favor of sysgpu
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-07-07 22:08:16 -07:00
Stephen Gutekanst
e6cecc3ebe
core: remove all examples
...
These examples were great at showing how to use the WebGPU and sysgpu APIs
but otherwise had poor code quality, depended on zmath instead of mach.math,
etc. and so are being removed.
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-07-07 22:08:16 -07:00
Stephen Gutekanst
2a7e6049fd
linux: update to latest vulkan-zig API; fix build
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-06-02 18:57:45 -07:00
Stephen Gutekanst
707e5cc756
update to Zig 2024.05
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-06-02 18:57:45 -07:00
Stephen Gutekanst
ffd03c3b0b
remove examples that require model3d
...
See hexops/mach#969
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-06-02 09:01:09 -07:00