zac
3c7d4021e9
change extension_names to use vk.extensions over hardcoded string
2025-08-30 18:24:00 +10:00
Robin Voetter
571c59180d
replace vk.Bool32 with enum
2025-08-26 23:06:23 +02:00
flut2
bed9e2d224
update to 0.15.0-dev.1518+749f10af4
2025-08-15 06:48:14 +01:00
Robin Voetter
39565ca4c3
fix window extent after creating
...
The requested dimensions of a newly created window may be different
from the actual dimensions as the window system may enforce additional
restrictions. This happens, for example, when using Wayland with a
scaling factor of 3 (the default width of 800 is not divisible by 3).
To fix it, just re-query the actual framebuffer size after creating the window.
The GLFW documentation also suggests to do this:
> The created window, framebuffer and context may differ from what you requested,
> as not all parameters and hints are hard constraints. This includes the size of
> the window, especially for full screen windows. To query the actual attributes
> of the created window, framebuffer and context, see glfwGetWindowAttrib,
> glfwGetWindowSize and glfwGetFramebufferSize.
-- https://www.glfw.org/docs/3.3/group__window.html#ga3555a418df92ad53f917597fe2f64aeb
This should be a better fix for #192
2025-07-20 09:19:47 +02:00
Ali Cheraghi
0fd576a7e5
update to latest zig
2025-07-16 17:20:05 +03:30
Ali Cheraghi
c1c56e9ec5
update zig shaders
2025-06-05 02:37:24 +03:30
Robin Voetter
114654790e
Merge pull request #181 from alichraghi/master
...
Add option to use zig shaders
2025-06-04 20:29:01 +02:00
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
Ali Cheraghi
7b7adcd206
Add option to use zig shaders
2025-04-24 18:05:50 +03:30
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