Stephen Gutekanst
e38d8649dc
gpu-dawn: update to latest Dawn version as of Dec 23, 2021
...
See hexops/dawn#5
Helps hexops/mach#121
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-24 01:53:33 -07:00
Ali Chraghi
38cab2e423
add wayland cross-compilation support ( #140 )
...
* add wayland-headers include path
* add wayland protocols header to wayland target includes
* move `xkb_unicode.c` to `sources_linux.c`
* glfw: document where wayland generated sources come from
* glfw: update sdk-linux-x86_64 to include Wayland protocol sources
See https://github.com/hexops/sdk-linux-x86_64/pull/2
Co-authored-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-24 01:06:51 -07:00
iddev5
ad8e1a4292
gpu-dawn: Fix building after the rename of gpu -> gpu-dawn
2021-12-24 00:52:59 -07:00
iddev5
cd82da72be
glfw: Update function docs in Monitor and vulkan to match glfw 3.3.6
2021-12-23 13:01:45 -07:00
iddev5
a385eef8cd
glfw: native.zig: Fix missing casts, incorrect return types and error
...
handling
2021-12-23 00:57:29 -07:00
iddev5
4f35c578a0
glfw: Add ziggified API of glfw3native.h
2021-12-23 00:57:29 -07:00
Stephen Gutekanst
162a9825e8
gpu-dawn: update README to reflect Dawn-specific package
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-22 18:04:33 -07:00
Stephen Gutekanst
7af784bee7
rename mach/gpu to mach/gpu-dawn
...
See https://github.com/hexops/mach/issues/133#issuecomment-999940767
Helps #109
Helps #133
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-22 18:04:33 -07:00
Ali Chraghi
7ec7fb7af0
glfw: Update glfw to 3.3.6 ( #136 )
...
* glfw: update glfw to 3.3.6
* glfw: make Vulkan-Headers clone faster
2021-12-22 11:15:23 -07:00
Ali Chraghi
6866fce4ee
glfw: make update-upstream.sh clone faster ( #132 )
2021-12-21 18:25:51 -07:00
Stephen Gutekanst
62fbf78f9a
gpu: update to latest Zig (c_void -> anyopaque)
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-20 15:36:45 -07:00
InKryption
4a27bf25ac
glfw: update CI to latest Zig master
2021-12-19 16:15:32 -07:00
InKryption
3bea968cb4
CI: update to latest Zig master
2021-12-19 16:15:32 -07:00
InKryption
f8e14dabc6
Run zig fmt
...
>> Zig master changed `c_void` to `anyopaque`, and zig fmt helps to change code as appropriate
2021-12-19 16:15:32 -07:00
Stephen Gutekanst
c279e0c794
gpu: update to latest Dawn revision as of Dec 15, 2021
...
See hexops/dawn#4
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-15 20:53:20 -07:00
iddev5
97ebee0e00
gpu: Fix invalid parameter type of glfw framebuffer callback function
2021-12-14 23:41:19 -08:00
Stephen Gutekanst
2e26559cc3
CI: remove sponsors generation (moved to website)
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-14 18:16:45 -08:00
Stephen Gutekanst
398b289941
glfw: mention Matrix chat room
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-14 18:16:45 -08:00
Stephen Gutekanst
8b717318d9
README: add new website, Matrix chat room
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-14 18:16:45 -08:00
Ali Chraghi
595cf48450
glfw: replace isize, usize with i32, u32 where appropriate ( #126 )
...
Fixes hexops/mach#114
2021-12-14 09:20:14 -07:00
slimsag
8b5fdbc333
README: regenerate sponsors section
2021-12-12 22:51:57 +00:00
Stephen Gutekanst
3535c8023f
gpu: prevent compiler flags from being repeated for each source file
...
This previously lead to a very long list of arguments to the compiler, so
long in fact that Windows cannot handle it.
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-12 14:51:36 -08:00
Stephen Gutekanst
d07b61787e
gpu: reduce compilation units to improve iteration time by ~387ms
...
See hexops/mach#124
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-12 14:51:36 -08:00
Stephen Gutekanst
fe17507689
gpu: reduce compilation units to improve iteration time by ~763ms
...
See hexops/mach#124
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-12 14:51:36 -08:00
Stephen Gutekanst
4a9fda49e0
gpu: reduce compilation units to improve iteration time by ~566ms
...
See hexops/mach#124
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-12 14:51:36 -08:00
Stephen Gutekanst
43ffa1c408
gpu: reduce compilation units to improve iteration time by ~288ms
...
See hexops/mach#124
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-12 14:51:36 -08:00
Stephen Gutekanst
51aae5e474
gpu: reduce compilation units to improve iteration time by ~121ms
...
See hexops/mach#124
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-12 14:51:36 -08:00
Stephen Gutekanst
3ec74222e6
glfw: reduce compilation units to bring iteration time down to ~90ms
...
This consistently shaves off about 40ms (~130ms -> ~90ms, 30% reduction) from build times when iterating.
On Windows, I suspect the result will be much greater due to slow filesystem perf there and the fact
that this reduces the # of files read.
This was originally brought to my attention as a possibility by @meshula in hexops/dawn#2 , the way this
works is by reducing compilation units so that C headers only need to be read/parsed/interpreted once
rather than once per individual C source file we are compiling.
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-10 03:52:41 -08:00
slimsag
c552148d0b
README: regenerate sponsors section
2021-12-10 11:40:19 +00:00
Stephen Gutekanst
77d2e8a9a3
glfw: improve consecutive build times by 4-12x
...
This substantially reduces consecutive build times when using mach/glfw.
`system_sdk.getSdkPath` is frequently invoked as part of the build process, and previously it was
doing some fairly involved work (ensuring the native SDK is at the right revision, needless
`git fetch` in native SDKs to check for updates, etc.)
We now do far less work in `getSdkPath`, and additionally cache the result in-memory. This improves
build times substantially, but especially so with consecutive (non-cold-cache) build times:
* For `mach/glfw`: ~2s before, ~160ms after
* For `mach/gpu`: , ~16s before, ~3.6s after
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-10 03:40:00 -08:00
InKryption
a9d378583d
glfw: rename capture appropriately
2021-12-09 19:42:28 -08:00
InKryption
f8be8582af
glfw: replace `glfw.dont_care as sentinel value
...
Apply same pattern to other hints which can take on the value of `glfw.dont_care`.
2021-12-09 19:42:28 -08:00
InKryption
4252ee0b1f
glfw: replace glfw.dont_care as sentinel value
...
Also change logic inside `Hints.set` to account for this special case
2021-12-09 19:42:28 -08:00
InKryption
f906bd6c79
glfw: remove accidental re-addition of TODO
2021-12-09 19:42:28 -08:00
InKryption
f953621a40
glfw: add doc-comment
...
Add comment for new `glfw.Window.SizeOptional` struct
Co-authored-by: Stephen Gutekanst <stephen.gutekanst@gmail.com>
2021-12-09 19:42:28 -08:00
InKryption
b50b56760e
glfw: replace usage of glfw.dont_care as sentinel value for parameters in some glfw.Window functions
2021-12-09 19:42:28 -08:00
InKryption
b8c913cd6c
glfw: remove TODOs
2021-12-08 19:30:01 -08:00
Stephen Gutekanst
9ea4d2aa6f
glfw: correctly @errorSetCast when returning errors from createWindowSurface
...
Fixes an issue where `createWindowSurface` would not compile (found when
updating https://github.com/hexops/mach-glfw-vulkan-example to latest.)
Introduced in hexops/mach#115
cc @InKryption
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-06 22:16:06 -07:00
InKryption
3648d6b9c4
glfw: Denormalize errors ( #115 )
...
Closes hexops/mach#96
Co-authored-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-06 21:52:15 -07:00
Stephen Gutekanst
233fc53a17
CI: update to latest Zig master
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-06 20:03:38 -08:00
Stephen Gutekanst
32a5addcbb
glfw: update CI to latest Zig master
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-06 20:03:38 -08:00
Stephen Gutekanst
7ecef80ec7
gpu: update to latest Zig master version (allocgate)
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-06 20:03:38 -08:00
BratishkaErik
784aa40093
glfw: update system_sdk.zig to latest Zig master
2021-12-06 20:03:38 -08:00
Stephen Gutekanst
5b2cb46700
gpu: reduce debug Dawn static library size from ~947M -> ~53M
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-04 23:01:16 -07:00
Stephen Gutekanst
1c6792a492
gpu: add OpenGL fallback support for Linux
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-05 04:25:19 +00:00
Stephen Gutekanst
6b0129f590
gpu: implement OpenGL / OpenGL ES adapter discovery in example
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-05 04:23:06 +00:00
Stephen Gutekanst
d8d0c85572
glfw: make getProcAddress ABI compatible with C implementation
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-05 04:22:21 +00:00
Stephen Gutekanst
507f4fa6aa
gpu: allow choosing WGPU_BACKEND in example program
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-05 04:21:29 +00:00
Stephen Gutekanst
1fc499922f
gpu: update Dawn to include generated OpenGL desktop sources
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-05 04:19:44 +00:00
Stephen Gutekanst
d9ec84b327
gpu: implement C wrapper for Dawn Instance.discoverAdapters
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-04 21:49:45 +00:00