Commit Graph

84 Commits

Author SHA1 Message Date
Sebastian Emanuel Dawid
783b70a12e Make sure the example does not segfault if it crashes during swapchain
recreation.
2025-05-13 11:56:03 +02:00
Sebastian Emanuel Dawid
dfc5a3db4e Fix crash related to failure to acquire next swapchain image during resizing 2025-05-13 11:27:22 +02:00
Robin Voetter
fdbe6d60d1 examples: clean up extension_names 2025-05-05 21:16:31 +02:00
Robin Voetter
fa2948199c formatting 2025-05-05 21:13:26 +02:00
Nico Gallinal
c8c59544fc changes to support 1.3.216 Vulkan SDK and above 2025-05-04 16:01:08 -03:00
Robin Voetter
dd978e3023 remove wrapper/proxy configurability, just load everything unconditionally 2025-03-15 15:43:11 +01:00
Robin Voetter
dcb1d96c59 Add vulkan video support
Implements #174.
2025-03-15 02:51:56 +01:00
Ali Cheraghi
19cb72207d build: add fingerprint 2025-03-03 21:26:03 +03:30
Robin Voetter
bb470f16da accept registry option as LazyPath
This allows passing LazyPaths obtained from dependencies to
the vulkan-zig dependency, which streamlines using vulkan-zig
with Vulkan-Headers provided by the package manager.
2024-12-29 21:29:52 +01:00
Robin Voetter
06dae6c920 yeet usingnamespace
Fixes #161
2024-09-17 20:45:09 +02:00
Robin Voetter
976dbfbcca example: use addSystemCommand instead of shader compile step 2024-09-04 23:56:38 +02:00
antlilja
c2e755d934 Add ability to pass a LazyPath to ShaderCompileStep
Allows for executables generated by the
build system to be used as shader compilers.
2024-07-09 12:35:00 +02:00
Patrick O'Connell
a2167a79d5 Author suffix last for alloc functions 2024-06-30 13:37:51 -07:00
Patrick O'Connell
4707aca68d Use *Alloc() functions in example 2024-06-29 17:13:06 -07:00
antlilja
794239076b Use cwd_relative for override registry 2024-05-16 18:04:23 +02:00
antlilja
949de7684e Update to zig master 2024-05-16 13:59:45 +02:00
Robin Voetter
defc4c53d3 update example with new proxying wrappers 2024-04-29 21:37:36 +02:00
Robin Voetter
c408e57d6d unified command info ii
This unifies command info even more, by making the user first construct
a list of `ApiInfo` to represent the api that they want to use. This
allows for much easier composition of different extensions and features.
2024-04-28 23:59:26 +02:00
Robin Voetter
66c2a743ba remove example vk.xml
This file is now fetched using the package manager.
2024-04-28 22:55:59 +02:00
Robin Voetter
7ac69f90ef use a separate build.zig for the example
This gives a more concrete example of how to use vulkan-zig, including
build commands as how a downstream user would use vulkan-zig.
2024-04-28 22:22:01 +02:00
bluesillybeard
d19313ba75 Run zig fmt 2024-04-27 21:27:43 -06:00
bluesillybeard
110d836854 Refactor example to use extension info and feature info for functions 2024-04-26 22:15:08 -06:00
Sirius902
e3bc661349 Fix crash when minimizing window
Wait for the device to be idle before exiting
2024-01-23 23:34:36 -08:00
Robin Voetter
27d9b028eb fix invalid use of var 2023-11-21 19:56:00 +01:00
antlilja
6c9133bc24 Remove type param from cast builtins 2023-06-27 13:09:34 +02:00
antlilja
8a0be4f5de Update intToFloat builtin to floatFromInt 2023-06-22 00:32:12 +02:00
David Gonzalez Martin
c75e71333d keep up with master breaking changes 2023-06-19 12:32:52 -06:00
CodesOtakuYT
de4ec3efa3 use std.mem.sliceTo instead of indexOfScalar 2023-06-07 17:08:27 +01:00
Codotaku
21383ef259 load the instance proc addr from vkb instead of the loader
Am honestly not sure if this is objectively better, but I can imagine that it's cleaner to rely on GLFW proc only to load the vkb. then rely on the vkb for everything else after that.
Feedback is appreciated!
2023-06-03 23:46:05 +01:00
antlilja
07b13e976f Made vulkan-zig conform to new multi for syntax 2023-02-22 22:34:49 +01:00
Robin Voetter
09565850a9 Explicitly pass null to p_wait_dst_stage_mask in SubmitInfo
It seems that the optional-ness of this field was changed in a recent-ish
vk.xml update.
2023-02-11 13:06:42 +01:00
ashpil
9d1ffe0fb3 no longer explicitly initialize fields which have defaults in example 2023-02-05 13:33:18 -05:00
Robin Voetter
f7a4e4346e Improve ShaderCreateStep to work around cache issues 2022-12-30 00:31:48 +01:00
Robin Voetter
db198fb4fa bump vk.xml version 2022-10-07 00:21:15 +02:00
Robin Voetter
80a201f89a fix alignment for shader binary 2022-09-24 00:40:17 +02:00
Robin Voetter
977b4ca5f4 remove unused unused variables 2022-09-24 00:34:46 +02:00
Robin Voetter
5d274abc8c avoid returning pointer to local 2022-08-20 00:44:25 +02:00
Robin Voetter
9607e97fe9 example: really resolve swapchain memory leak this time 2022-02-08 12:36:38 +01:00
Robin Voetter
7b80166108 example: handle potential memory leak 2022-02-02 17:14:44 +01:00
maxxnino
e9615a2ce2 example: fix memory leak in swapchain.deinit 2022-01-30 12:00:11 +09:00
maxxnino
86ba5f9980 fix segfault when add more device extensions in example 2022-01-22 14:34:12 +09:00
Robin Voetter
e37b7a0f1b Merge pull request #35 from InKryption/duck-typing-made-easier
Duck typing verification made easier
2022-01-10 18:43:07 +01:00
maxxnino
ac1eb6fa17 destroy correct semaphore when error 2022-01-02 14:26:24 +09:00
InKryption
10fe28eddc Remove debug assertion 2021-12-28 13:12:45 +01:00
InKryption
fd4302f848 Make duck-typing easier
* Use flag struct based on command enum to enable commands
* Include cmds argument as public declaration inside Wrapper structs
* Include Dispatch type as public declaration inside Wrapper structs
2021-12-28 12:52:52 +01:00
Robin Voetter
d1e949a434 Don't remove pointers on in_pointer parameters.
Previously pointers were removed here to facilitate using anonymous struct
literals. Now that Zig supports &.{, these are no longer required, and they
can be pointers again.

Note that there are still some problems in the Zig stage1 compiler, see
https://github.com/ziglang/zig/issues/7627 for example.
2021-12-09 00:28:17 +01:00
Robin Voetter
797ae8af88 Adapt to latest Zig master
See ziglang/zig/pull/10055
2021-12-09 00:28:17 +01:00
maxxnino
a3f4e6a400 use present_queue for present_queue 2021-11-21 23:41:46 +09:00
Robin Voetter
c6b46172c8 example: Cheap fix to make the window resizable on wl 2021-11-08 14:06:00 +01:00
InKryption
087cd02413 Update graphics_context.zig 2021-11-05 18:06:20 +00:00