Commit Graph

54 Commits

Author SHA1 Message Date
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
Stephen Gutekanst
55c2da886b examples: do not call glfwSwapBuffers
I am porting this example to [mach-glfw](github.com/hexops/mach-glfw), and noticed that no GLFW error handling callback is registered because in my port there are a lot of GLFW errors :)

`glfwSwapBuffers` here is emitting `GLFW_NO_WINDOW_CONTEXT` errors constantly, because calling it without a valid OpenGL context is illegal. It's not needed for Vulkan.
2021-10-31 00:57:21 -07:00
Robin Voetter
90d81c1a04 Make command enums lower camel case to reflect command function name style 2021-10-25 14:34:26 +02:00
Robin Voetter
9e40721655 Update to new usingnamespace semantics 2021-09-02 16:16:35 +02:00
Marten Ringwelski
9166080041 examples/swapchain: Fix typo 2021-08-08 21:50:19 +02:00
ashpil
722ddfdb6b camel -> snake for command enums + fixes 2021-06-26 23:43:59 -04:00
ashpil
e36930ad5d less verbose interface via @Type 2021-06-25 09:28:52 -04:00
Robin Voetter
79d901a3e0 Fix a whole bunch of issues exposed by ziglang/zig#9191
This also includes a workaround for the fact that @"type" refers to the builtin
and not to a variable called "type". See ziglang/zig#2897.
2021-06-24 02:11:36 +02:00
Robin Voetter
511211f038 zig fmt **.zig
This also replaces @byteOffsetOf with @offsetOf.
2021-06-13 15:15:42 +02:00
Robin Voetter
0c404b3c32 Update examples xml 2021-04-18 00:25:50 +02:00
Robin Voetter
5375c873d9 Vulkan 1.2.175 compatibility 2021-04-13 19:52:06 +02:00
Robin Voetter
9f23e2e16d Vulkan 1.2.170 compatibility 2021-02-16 15:26:22 +01:00
Robin Voetter
19138aa7a3 Fix missing {s} in triangle.zig 2021-01-08 19:47:56 +01:00
Robin Voetter
93101d595f Only use stdcall when on 32-bit windows (https://github.com/ziglang/zig/issues/7337) 2020-12-09 01:30:42 +01:00
antlilja
8c9a04c934 Update vk.xml. 2020-12-04 20:14:19 +01:00
Robin Voetter
646d74ab6a Make graphics_context.zig naming consistent 2020-11-26 15:25:54 +01:00
Robin Voetter
d18fe39488 Move fence waiting to SwapImage 2020-07-11 00:48:41 +02:00
Robin Voetter
0955d94ac5 Fix some synchronization in the example + remove unused import 2020-07-11 00:42:20 +02:00
Robin Voetter
3f63c476b5 Staging buffer 2020-07-06 02:35:56 +02:00
Robin Voetter
29de177c05 Rename example to triangle 2020-07-05 18:25:50 +02:00
Robin Voetter
9b3eff5a72 Rendering from a buffer 2020-07-05 16:27:52 +02:00
Robin Voetter
8c9bb747c3 Use dynamic state for viewports to avoid pipeline recreation 2020-07-04 17:30:22 +02:00
Robin Voetter
40b74caee5 Triangle rendering 2020-07-04 17:18:28 +02:00
Robin Voetter
fab23126e9 Framebuffer creation 2020-07-04 16:58:10 +02:00
Robin Voetter
e217cbab77 Pipeline(Layout) & render pass creation 2020-07-04 16:46:38 +02:00
Robin Voetter
0be71d1614 Shader compilation utility 2020-07-04 04:19:32 +02:00
Robin Voetter
72917ccdb3 Shader compilation utility 2020-07-04 04:18:56 +02:00
Robin Voetter
e049300d02 Dispose of old swapchain after recreating
This previously lead to X11 errors after aggressively resizing the
window
2020-07-03 15:48:26 +02:00
Robin Voetter
f4ad3304a0 Avoid queueWaitIdle when deinitializing/recreating the swapchain 2020-07-03 02:42:40 +02:00
Robin Voetter
c519450c57 Only recreate command buffers after swapchain invalidate 2020-07-03 02:29:11 +02:00
Robin Voetter
37b002001a Basic rendering 2020-07-02 22:25:09 +02:00