88 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
Giuseppe Modarelli 975c36a096 zd3d12: Add a args struct to createAndUploadTex2dFromDdsFile 2023-04-22 16:42:33 +02:00
Giuseppe Modarelli 2a4cd6cbf0 zd3d12: code cleanup 2023-04-22 08:05:24 +02: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 165f9dad8d Updated to the latest Zig compiler (dev.2154+ required). 2023-03-19 00:57:09 +01:00
Michal Ziulek 2ca0293cc7 bindless sample app: Removed .PNG textures (we now use .DDS). 2023-03-01 09:57:00 +01:00
Michal Ziulek 22bb6ba5c2 bindless sample app: Tweaked shader code. 2023-03-01 09:40:06 +01:00
Giuseppe Modarelli ef8bb66eb1 Merge branch 'main' into dds-textures 2023-02-28 12:48:58 +01:00
Giuseppe Modarelli ea2b721eb4 Remove DDS textures 2023-02-28 12:47:48 +01:00
Michal Ziulek 169e8f25e5 bindless sample app: Added DDS textures. 2023-02-28 12:44:32 +01:00
Giuseppe Modarelli 180b3e6249 Fix memory corruption issues (thank you Michal!) 2023-02-28 12:42:16 +01:00
Giuseppe Modarelli 7e4eb3ea9f Regenerated DDS textures 2023-02-27 18:16:01 +01:00
Giuseppe Modarelli 5d5eb94da0 Delete DDS textures 2023-02-27 18:14:56 +01:00
Giuseppe Modarelli 1a78a4672e Regenerated DDS with mip maps 2023-02-27 18:08:47 +01:00
Giuseppe Modarelli b51d2af5fd Track dds files with git-lfs and regenerate the textures 2023-02-27 17:11:02 +01:00
Michal Ziulek f49a0603d0 zstbi: Image.init() -> Image.loadFromFile(), Image.initFromData() -> Image.loadFromMemory(). 2023-02-26 14:11:38 +01:00
Giuseppe Modarelli 139e3635f8 finishGpuCommands() around every DDS texture upload 2023-02-24 22:03:13 +01:00
Giuseppe Modarelli c71f29d891 Use the bindless sample to test DDS texture loading
I need to to start a new frame when I upload a DDS texture otherwise it ends up corrupted
2023-02-24 21:57:33 +01:00
Giuseppe Modarelli ba8c9f9a8d bindless: use zmesh.opt.simplifySloppy to create LODs 2023-02-24 15:52:23 +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 0c609c91a4 Updated to the latest Zig compiler - we now require dev.1557 or newer (part 2). 2023-02-03 20:54:19 +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 de3f7b787a d3d12: Linux compatibility for all demos should be ready. Next step is to test and enable demos that work fine in the root build.zig 2023-01-22 18:00:40 +01:00
Michal Ziulek 8cae0e1b77 d3d12: Progress towards Linux compatibilty. 2023-01-22 16:59:57 +01:00
Michal Ziulek 0879470992 zwin32: Re-org. 2023-01-16 11:43:17 +01:00
Michal Ziulek bad01a7e82 Cleanups. 2023-01-09 13:24:31 +01:00
Michal Ziulek 15ce49df8d d3d12: More 'flag types' converted to 'packed struct'. 2023-01-08 17:18:24 +01:00
Michal Ziulek a48dc2a0fb d3d12: RESOURCE_STATES converted to 'packed struct'. 2023-01-08 16:27:18 +01:00
Michal Ziulek 9b3d13f1c8 d3d12: RESOURCE_FLAGS converted to 'packed struct'. 2023-01-07 20:35:35 +01:00
Michal Ziulek bd5d70686c d3d12.zig cleanups. Started to convert FLAGS types from constants (UINT) to 'packed struct(UINT)'. 2023-01-07 19:48:49 +01:00
Michal Ziulek b1054a46dc bindless: Fixed compile error. 2023-01-07 14:05:16 +01:00
Giuseppe Modarelli fe02c54f9d Make upload_heap_capacity a build option 2023-01-07 13:17:59 +01:00
Michal Ziulek 1cfc590a68 d3d12: Updated D3D12Core.dll to the latest. 2022-12-21 12:25:16 +01:00
Michal Ziulek eccfa19ab5 d3d12: Added 'bindless' sample app. 2022-12-20 23:04:49 +01:00
Michal Ziulek 44d10bf5a2 Moved Windows-only libs and samples to the 'windows' branch. 2022-09-20 11:41:00 +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 f7ed5df032 selfhosted compat: thisDir() that works. 2022-08-09 23:26:01 +02:00
Michal Ziulek 7a4173361d zpix: Converted to a new way of handling packages. Also, zpix does not depend in zwin32. 2022-05-26 17:32:03 +02:00
Michal Ziulek 7eb0ebc3a6 ztracy, zmesh: BuildOptions is public now. BuildOptionsStep.addTo() is now private and called by link(). This further simplifies user's build.zig 2022-05-26 14:48:55 +02:00
Michal Ziulek 5d8d5b37ae zmesh, ztracy: It is now easier to use and configure those packages. Please see README files for details. 2022-05-25 20:38:40 +02:00
Michal Ziulek c5fef3cdd3 More cleanups regarding building stuff.
Our standard build options package is called: 'build_options'.
Some packages depend on it (zmesh, ztracy, etc).

Currently we support below options:

zmesh_shape_use_32bit_indices=[bool]
ztracy_enable=[bool] (can be passed on cmdline as: -Dztracy-enable)
zpix_enable=[bool] (can be passed on cmdline as: -Dzpix-enable)

Option name must be prefixed with package name.
2022-05-25 14:57:15 +02:00
Michal Ziulek 44fbded644 Major cleanup regarding handling and building packages. Package dependencies need to be explicitly passed to getPkg() in user's build.zig. 2022-05-24 23:40:32 +02:00
Michal Ziulek ff0f7a9ed8 zmesh: Procedural shapes now support 16-bit and 32-bit indices. This can be set as a build option. Also, to link with zmesh it is enough to call zmesh.link(.{}) no need for addPackage() anymore. 2022-05-24 14:05:26 +02:00
Michal Ziulek 7ab8497cae stage2 compat: Force thisDir() to be comptime only func. 2022-05-23 13:06:09 +02:00