Commit graph

2002 commits

Author SHA1 Message Date
Stephen Gutekanst
963f06261f gpu: add CullMode enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00
Stephen Gutekanst
6e0c71f121 gpu: add CreatePipelineAsyncStatus enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00
Stephen Gutekanst
b0682df01b gpu: add ComputePassTimestampLocation enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00
Stephen Gutekanst
8f28b65fed gpu: add CompilationMessageType enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00
Stephen Gutekanst
06661ce9e1 gpu: add CompilationInfoRequestStatus enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00
Stephen Gutekanst
3a4abcef6f gpu: add CompareFunction enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00
Stephen Gutekanst
19425d4f86 gpu: add Buffer.MapAsyncStatus
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00
Stephen Gutekanst
87b06cf373 gpu: add Buffer.BindingType enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00
Stephen Gutekanst
97b21c8ac8 gpu: add BlendOperation enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00
Stephen Gutekanst
8115d0cbf7 gpu: add BlendFactor enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00
Stephen Gutekanst
78685c19a0 gpu: add BackendType enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00
Stephen Gutekanst
8ca3d666a3 gpu: add AlphaMode enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00
Stephen Gutekanst
4163005eb5 gpu: ref all decls in test
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00
Stephen Gutekanst
ee65cb286c gpu: add Sampler.AddressMode
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00
Stephen Gutekanst
af9c01d851 gpu: add Adapter.Type
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00
Stephen Gutekanst
7d2ecdf197 gpu: expose opaque pointer types
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00
Stephen Gutekanst
0ae04f1d87 gpu: translate opaque pointer types
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00
Stephen Gutekanst
32a26d8f12 gpu: translate constants
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 00:43:43 -07:00
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