Commit Graph

547 Commits

Author SHA1 Message Date
Robin Voetter
c9c4dae703 Merge pull request #204 from zacoons/debugMessages
Debug messages
2025-08-31 22:41:24 +02:00
zac
ecf97034c4 add debug messenger to graphics context 2025-08-30 18:27:22 +10:00
zac
3c7d4021e9 change extension_names to use vk.extensions over hardcoded string 2025-08-30 18:24:00 +10:00
Robin Voetter
f879074293 Merge pull request #203 from Snektron/vkbool32-enum
replace vk.Bool32 with enum
2025-08-26 23:07:48 +02:00
Robin Voetter
571c59180d replace vk.Bool32 with enum 2025-08-26 23:06:23 +02:00
Robin Voetter
8322c9593f Merge pull request #201 from i-pj/fix-issue-200
Format function signature
2025-08-24 21:05:12 +02:00
Parth Jain
33407b8e4e update format function 2025-08-24 14:04:13 +05:30
Robin Voetter
93bc6f1ac3 Merge pull request #198 from flut2/update-zig-1
update to 0.15.0-dev.1518+749f10af4
2025-08-15 10:37:02 +02:00
flut2
bed9e2d224 update to 0.15.0-dev.1518+749f10af4 2025-08-15 06:48:14 +01:00
Robin Voetter
ed429842b8 Merge pull request #196 from mozbeel/android-fix
isARM -> isArm (Android)
2025-08-01 00:12:29 +02:00
mozbeel
cb618dea81 Fixed isARM -> isArm 2025-08-01 00:03:25 +02:00
Robin Voetter
e492b17810 Merge pull request #195 from Snektron/fix-windowresize
fix window extent after creating
2025-07-20 11:47:10 +02: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
Robin Voetter
f99c5994dc Merge pull request #193 from alichraghi/master
update to latest zig
2025-07-19 13:30:49 +02:00
Robin Voetter
2a1dba26ff Add workaround for incorrect StdVideoH265HrdParameters encoding
See https://github.com/KhronosGroup/Vulkan-Docs/issues/2557
2025-07-19 13:26:20 +02:00
Robin Voetter
9e6c4640bf fix std.process.fatal usage in src/main.zig + fix tree rendering 2025-07-19 12:59:39 +02:00
Ali Cheraghi
0fd576a7e5 update to latest zig 2025-07-16 17:20:05 +03:30
Robin Voetter
c66bddee00 StdVideoVP9 workaround 2025-06-08 19:10:10 +02:00
Robin Voetter
0e164cd730 Merge pull request #191 from alichraghi/master
ci: add build with zig shaders step
2025-06-05 22:19:28 +02:00
Ali Cheraghi
e191c3ccbb ci: add build with zig shaders step 2025-06-05 23:46:27 +03:30
Robin Voetter
970d7f2e3a Merge pull request #190 from alichraghi/master
update zig shaders
2025-06-05 22:00:02 +02:00
Ali Cheraghi
c1c56e9ec5 update zig shaders 2025-06-05 02:37:24 +03:30
Robin Voetter
c9f2c528cc remove copyright year (its forever) 2025-06-04 20:30:31 +02:00
Robin Voetter
114654790e Merge pull request #181 from alichraghi/master
Add option to use zig shaders
2025-06-04 20:29:01 +02:00
Robin Voetter
2582717df1 ci: update to setup-zig v2 2025-06-04 20:26:35 +02:00
Robin Voetter
9b4090c852 Merge pull request #187 from Sebastian-Dawid/master
Fix crash of the example related to swapchain recreation during resizing.
2025-05-13 21:26:52 +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
Robin Voetter
a5394e1b05 Merge pull request #185 from nicoabie/fix-issue-137
changes to support 1.3.216 Vulkan SDK and above
2025-05-05 21:10:37 +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
42e7a8409b Merge pull request #180 from rpkak/remove-additional-null-termination
Remove additional null termination
2025-04-02 10:08:26 +02:00
rpkak
208f0612de Remove additional null termination
[`std.builtin.Type.StructField.name`](https://ziglang.org/documentation/master/std/#std.builtin.Type.StructField) has type `[:0]const u8`
2025-04-02 09:09:34 +02:00
Robin Voetter
355e4828dd Merge pull request #179 from rpkak/allow-custom-dispatch-types
Allow custom Dispatch structs
2025-03-31 21:27:53 +02:00
rpkak
d9fd4eb51a Allow custom dispatch structs 2025-03-31 13:44:23 +02:00
Robin Voetter
40ad90a912 Merge pull request #177 from Snektron/remove-commandflags
remove wrapper/proxy configurability, just load everything unconditionally
2025-03-24 22:50:51 +01:00
Robin Voetter
dd978e3023 remove wrapper/proxy configurability, just load everything unconditionally 2025-03-15 15:43:11 +01:00
Robin Voetter
57d587c8a4 Merge pull request #176 from Snektron/vulkan-video-flags
default initialize packed flag structs to false
2025-03-15 14:03:28 +01:00
Robin Voetter
d046ace4d8 default initialize packed flag structs to 0 2025-03-15 13:24:36 +01:00
Robin Voetter
f6e9565ab6 Merge pull request #175 from Snektron/vulkan-video
Add vulkan video support
2025-03-15 02:54:44 +01:00
Robin Voetter
dcb1d96c59 Add vulkan video support
Implements #174.
2025-03-15 02:51:56 +01:00
Robin Voetter
dcd538828c Merge pull request #172 from alichraghi/master
build: add fingerprint
2025-03-03 19:11:12 +01:00
Ali Cheraghi
19cb72207d build: add fingerprint 2025-03-03 21:26:03 +03:30
Robin Voetter
604416bf44 add renderSpecialContainer support for VK_NV_cluster_acceleration_structure
Solves #169
2025-02-09 16:14:27 +01:00
Robin Voetter
1fd5a6e217 Merge pull request #168 from flut2/master
Update to 0.14.0-dev.2837+f38d7a92c
2025-01-20 00:14:56 +01:00
flut2
55f3bb3c24 update to 0.14.0-dev.2837+f38d7a92c 2025-01-19 16:50:51 +00:00
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
dd6e61d689 add missing vulkan video type in ref_all_decls.zig 2024-11-24 21:00:24 +01:00