89 Commits
Author SHA1 Message Date
Michal Ziulek 31da523af1 Updated to the latest Zig compiler (0.11.0-dev.3859). 2023-06-27 13:28:12 +02:00
Michal Ziulek ef83560d6a Updated to the latest Zig compiler (0.11.0-dev.3833). 2023-06-26 23:34:17 +02:00
Anders Elfgren e3fd487093 Updated to the latest Zig compiler (0.11.0-dev.3737). 2023-06-21 22:25:06 +02:00
Average Joe 7f5400526d Fully fix issue 318: std.math.max, std.math.min deprecated 2023-06-17 22:53:18 -07:00
Michal Ziulek 9b9931089c Build system: Final simplification. User just needs to call package() and link(). Updated docs (minor breaking change, sorry). 2023-03-21 14:31:21 +01:00
Michal Ziulek 2ce87f5483 root build.zig: Simplification (1/N). 2023-03-17 20:08:02 +01:00
Michal Ziulek f49a0603d0 zstbi: Image.init() -> Image.loadFromFile(), Image.initFromData() -> Image.loadFromMemory(). 2023-02-26 14:11:38 +01:00
kcbanner c60f0165f2 - update to the new for loop syntax
- zmath: pass options module to the tests
2023-02-19 14:33:50 -05:00
Michal Ziulek eb702c24ea Major reorg in build scripts. We now re-use all compilation artifacts among all samples and tests. This speeds up building the project because we build each lib only once. 2023-02-10 19:28:37 +01:00
Michal Ziulek 6c2c79ba93 Updated to the latest Zig build API changes (part 2, improved solution). 2023-02-06 18:30:59 +01:00
Michal Ziulek 1100561b78 Updated build scripts to the latest Zig build API changes (part 1). 2023-02-06 13:20:34 +01:00
Michal Ziulek d4cbe6d6ed Updated to the latest Zig compiler - we now require dev.1557 or newer. 2023-02-03 19:35:55 +01:00
Michal Ziulek 894880684b zgui: Small BREAKING change in user build script. It is now required to pass an options package with selected backend. 2022-12-21 14:17:58 +01:00
Michal Ziulek 22c17aadf3 zglfw: Removed the last arg from Window.create() (it is only for OpenGL). 2022-12-15 18:56:29 +01:00
Michal Ziulek 764cfd2a4d zglfw: Removed Window.Hint (we don't need it, defaults are fine). Added Windows.setAttribute(). 2022-12-15 17:27:44 +01:00
Michal Ziulek f1c6d79c01 zglfw: Version 0.5 with upadated API (minor breaking changes). 2022-11-19 17:52:39 +01:00
Michal Ziulek 0add7e13c6 zphysics: Progress. 2022-11-12 18:42:58 +01:00
Michal Ziulek 8b153f28e7 zmesh: Updated cgltf to the latest. Tiny API improvement. Bumped version to 0.9 2022-10-14 20:17:55 +02:00
Michal Ziulek 4e057d8cc4 zgpu: suggestTextureFormat() -> imageInfoToTextureFormat(). 2022-10-05 13:25:04 +02:00
Michal Ziulek 1135b86189 physically_based_rendering_wgpu: Potential fix for #94. 2022-10-05 00:01:18 +02:00
Michal Ziulek 3096911761 all demos: Do not hardcode image format, take advantage of better zstbi API. 2022-10-04 19:59:21 +02:00
Michal Ziulek d8700b6b01 zstbi: Refactored, simplified. Breaking change. Road to v0.9 2022-10-04 15:50:11 +02:00
Michal Ziulek 5b09b07fbc zgpu: BREAKING CHANGES. Removed 'util' namespace. Renamed bglBuffer() etc. to bufferEntry(). Moved util functions from 'wgpu.zig' to 'zgpu.zig'. 2022-10-04 13:05:53 +02:00
Michal Ziulek befbf1adb4 zstbi: Added support for custom allocators + more changes. 2022-10-04 00:16:31 +02:00
Michal Ziulek 6804dafa40 zgpu: GraphicsContext.init() -> GraphicsContext.create(). Removed checkSystem(), checks are now done in GraphicsContext.create(). Fixed some symbols being public by mistake. demos: Polish. 2022-10-02 17:55:04 +02:00
Michal Ziulek e47ba54dac zgpu: Progress towards v0.9
Added compile time options that allow user to set:
* Uniforms buffer size (default: 4 * 1024 * 1024)
* Dawn 'skip_validation' toggle (default: false)
* Pool sizes for all resource types

We now use std.log instead of std.debug for printing messages.

Bunch of other code cleanups.
2022-10-02 13:14:03 +02:00
Michal Ziulek 6bb70b2a33 zgui: Simplified build script. zgui itself has no dependency - only rendering backend has. 2022-09-30 17:41:20 +02:00
Michal Ziulek d8d9d70ec1 zgui: zgui.init() now requires memory allocator. 2022-09-24 23:31:33 +02:00
Michal Ziulek 4ff4aa386e zmath: All tests now pass (debug and release). Disable LTO where needed for now. 2022-09-14 22:51:43 +02:00
Michal Ziulek f305876d6a zglfw: Minor API change: Return arrays instead of anonymous structs. 2022-09-14 16:42:32 +02:00
Michal Ziulek fd363f2e21 wgpu demos: Disable LTO - fixes link errors in release mode on Windows. 2022-09-06 20:58:27 +02:00
Michal Ziulek 78d962422f wgpu demos: \x00 is not needed 2022-09-06 12:37:33 +02:00
Michal Ziulek 412ce7b1cb zgpu: Moved zgui to a separate library. We now have zgui and zgui.backend namespaces. Better init code in demos. 2022-09-06 12:27:15 +02:00
Michal Ziulek 69cbfbe261 zgpu: Moved image loading code to a separate library called: zstbi. 2022-09-06 10:09:34 +02:00
Michal Ziulek 418442c5b1 We now use our own, lightweight GLFW 3.3.8 bindings (zglfw). No translate-c dependency. zglfw is very incomplete for now. Please let me know if you need missing functionality. 2022-09-05 18:10:55 +02:00
Michal Ziulek edf0c7f11f Removed all submodules. 2022-08-31 17:08:11 +02:00
Michal Ziulek f518d0bce4 wgpu samples: Scale GUI to match system DPI scale. 2022-08-14 23:23:19 +02:00
Michal Ziulek cac411e601 zgpu: Updated wgpu bindings - removed endPass(), dispatch() -> dispatchWorkgroups(), few new enums, etc. 2022-08-14 19:06:05 +02:00
Michal Ziulek f7ed5df032 selfhosted compat: thisDir() that works. 2022-08-09 23:26:01 +02:00
Michal Ziulek 56dad6cdbc zgui: Very nice progress. API should be mostly stable now. Added new widgets, code cleanups, improvements etc. Also, project now requires latest Zig compiler (master 0.10.0-dev-3027+). 2022-07-18 14:36:38 +02:00
Michal Ziulek 22ef68f4e1 zgui: We now use structs with named fields instead of tuples for passing function arguments. 2022-07-15 13:27:31 +02:00
Michal Ziulek 6274a874ab zgui: Experimental API that allows default args and function name overloading. 2022-07-14 13:58:35 +02:00
Michal Ziulek c4b3ca53e5 zgpu: LARGE CHANGE. Removed dependency on mach-gpu. We now use our own, very lightweight wgpu bindings. Those bindings have no CPU/memory overhead and doesn't depend on translate-c. 2022-07-10 19:51:19 +02:00
Michal Ziulek ee5b6a62cb zgpu: Removed dependency on 'cimgui'. We now have our own, minimal 'imgui' bindings called 'zgui'. 2022-06-10 09:34:44 +02:00
Michal Ziulek 38f745eb01 bullet_physics_test_wgpu: Implemented object picking with mouse. Also, some (small) API changes in zmath and zbullet. 2022-06-05 22:41:03 +02:00
Michal Ziulek bd2664e126 zpool: We actually don't need to add zpool package to an application. Also, simplified zpool/build.zig (no need to create a static lib). 2022-05-31 19:01:07 +02:00
Garett Bass 02fa542ed8 implement zgpu.ResourcePool() with zpool.Pool 2022-05-31 09:23:36 -07:00
Michal Ziulek f183b9fab7 zgpu: Moved src/mach-gpu to libs/mach-gpu 2022-05-31 01:22:17 +02:00
Michal Ziulek d9bac66e58 zgpu: Moved mach-glfw and mach-gpu-dawn into zgpu package. Linking with zgpu now automatically links with glfw. 2022-05-30 19:32:11 +02:00
Michal Ziulek b2ddaa54f5 zgpu: Updated to the latest WebGPU bindings. 2022-05-29 14:06:17 +02:00