Robin Voetter
571c59180d
replace vk.Bool32 with enum
2025-08-26 23:06:23 +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
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
Robin Voetter
defc4c53d3
update example with new proxying wrappers
2024-04-29 21:37:36 +02:00
antlilja
6c9133bc24
Remove type param from cast builtins
2023-06-27 13:09:34 +02:00
David Gonzalez Martin
c75e71333d
keep up with master breaking changes
2023-06-19 12:32:52 -06:00
ashpil
9d1ffe0fb3
no longer explicitly initialize fields which have defaults in example
2023-02-05 13:33:18 -05: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
ac1eb6fa17
destroy correct semaphore when error
2022-01-02 14:26:24 +09: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
Marten Ringwelski
9166080041
examples/swapchain: Fix typo
2021-08-08 21:50:19 +02:00
Robin Voetter
511211f038
zig fmt **.zig
...
This also replaces @byteOffsetOf with @offsetOf.
2021-06-13 15:15:42 +02: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
9b3eff5a72
Rendering from a buffer
2020-07-05 16:27:52 +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
Robin Voetter
34253e231b
Swapchain
2020-07-02 17:09:34 +02:00