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
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
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
9607e97fe9
example: really resolve swapchain memory leak this time
2022-02-08 12:36:38 +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
Robin Voetter
c6b46172c8
example: Cheap fix to make the window resizable on wl
2021-11-08 14:06:00 +01: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
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
19138aa7a3
Fix missing {s} in triangle.zig
2021-01-08 19:47:56 +01:00
Robin Voetter
646d74ab6a
Make graphics_context.zig naming consistent
2020-11-26 15:25:54 +01: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