Robin Voetter
c169871f96
Clarify loader calling convention characteristics (implements #30 )
2021-12-09 00:28:17 +01:00
Robin Voetter
d9a57859c6
Add non-failing dispatch load function
2021-12-09 00:28:17 +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
2952901939
Don't generate Khronos copyright
2021-12-09 00:28:17 +01:00
Robin Voetter
cc9ebf50bb
Remove superficial GlobalScope declaration
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
e634a4b434
CI: Bump Vulkan SDK version
2021-12-09 00:28:17 +01:00
Clement Rey
c036464d21
use Allocator.dupe instead of std.mem.dupe
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
156843cb9a
Merge pull request #28 from Aransentin/patch-1
...
Updated Vulkan XML registry master branch name
2021-11-11 20:37:32 +01:00
Jens Goldberg
9aab9f4480
Updated Vulkan XML registry master branch name
...
The Vulkan XML registry changed their name from "master" to "main". This bit me when I followed the link in the README, didn't read too carefully that it was X commits behind, and downloaded a pretty old and incompatible version of `vk.xml` by mistake.
2021-11-11 19:34:34 +00:00
Robin Voetter
c6b46172c8
example: Cheap fix to make the window resizable on wl
2021-11-08 14:06:00 +01:00
Robin Voetter
8862336b77
Make Vulkan enums always be 32-bit ( fixes #26 )
2021-11-08 13:43:41 +01:00
Robin Voetter
caf8e6be99
Merge pull request #25 from InKryption/patch-1
...
Replace `anytype` with explicit `[]const {s}Command`
2021-11-05 19:10:11 +01:00
InKryption
087cd02413
Update graphics_context.zig
2021-11-05 18:06:20 +00:00
InKryption
d9c1c79223
Replace anytype with explicit []const {s}Command
2021-11-05 17:45:15 +00:00
Robin Voetter
a6063cc89e
Merge pull request #24 from InKryption/patch-1
...
Fix incorrect references to windows decls in render.zig
2021-11-03 23:06:55 +01:00
InKryption
596672d631
Fix HWND reference
2021-11-03 22:04:52 +00:00
InKryption
941a940122
Fix other references to std.os.windows decls.
...
I noticed these are also incorrectly referencing windows decls inside std.os.
2021-11-03 21:40:23 +00:00
InKryption
5afeb68873
Change 'std.os.HINSTANCE' to 'std.os.windows.HINSTANCE'
...
I got a compile error for this after playing around and doing 'vk.InstanceWrapper(std.enums.values(vk.InstanceCommand))', where the compiler thusly complained that there is no declaration for `HINSTANCE` inside `std.os`.
2021-11-03 21:26:49 +00:00
Robin Voetter
58787a9dc3
Add mach-glfw and mach-glfw-vulkan-example readme links
2021-10-31 16:50:35 +01:00
Robin Voetter
5a08cb8f9f
Merge pull request #21 from slimsag/patch-1
...
examples: do not call glfwSwapBuffers
2021-10-31 16:26:23 +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
90d81c1a04
Make command enums lower camel case to reflect command function name style
2021-10-25 14:34:26 +02:00
Robin Voetter
5f9c17de9a
Make sure there are no errors after parsing generated Zig
2021-09-07 03:40:24 +02:00
Robin Voetter
d800f1f9a9
CI: Bump vulkan sdk to 189
2021-09-07 03:39:05 +02:00
Robin Voetter
907adb6d91
Add undefined/true/false/null keywords
...
Stage 2 treats these as identifiers now, but in stage 1 they still
require @"" syntax. See commit
05cf44933d
2021-09-02 16:17:43 +02:00
Robin Voetter
9e40721655
Update to new usingnamespace semantics
2021-09-02 16:16:35 +02:00
Robin Voetter
07e530719b
Update std.mem.split usage to new API
2021-08-14 01:07:08 +02:00
Robin Voetter
89e16f69a8
Fix some allocation bugs, replace everything by arena ( #18 )
2021-08-14 00:57:26 +02:00
Robin Voetter
eb417c6aa0
Merge pull request #17 from maringuu/fix-typo
...
examples/swapchain: Fix typo
2021-08-10 03:56:21 +02:00
Marten Ringwelski
9166080041
examples/swapchain: Fix typo
2021-08-08 21:50:19 +02:00
Robin Voetter
c1493a8218
Merge pull request #16 from ashpil/master
...
Adds defaults for previously undetected feature struct
2021-08-07 03:56:07 +02:00
ashpil
c788b09e78
adds defaults for previously undetected feature struct
2021-08-06 21:43:00 -04:00
Robin Voetter
5b759fe124
addPackagePath -> addPackage
2021-07-30 00:51:23 +02:00
Robin Voetter
701aaeb2cd
Clarify on package name
2021-07-30 00:50:42 +02:00
Robin Voetter
a054c7a657
Update readme with new build.zig usage
2021-07-30 00:49:46 +02:00
Robin Voetter
fa249d7d73
Merge pull request #15 from ashpil/master
...
Implements default for feature structs
2021-07-12 12:51:41 +02:00
ashpil
871d4e7251
implements default for feature structs
2021-07-08 21:31:41 -04:00
Robin Voetter
7df0b39eae
Merge pull request #14 from nektro/patch-1
...
add native support for Zigmod package manager
2021-07-07 22:51:42 +02:00
Meghan
9b289704c7
Create zig.mod
2021-07-07 12:26:31 -07:00
Robin Voetter
e3b1249a45
Update readme
2021-07-06 10:59:36 +02:00
Robin Voetter
ecf3ba4a39
Adapt to Zig master
2021-07-06 10:44:08 +02:00
Robin Voetter
27c8d4862c
Render error set constant for wrappers
2021-07-02 22:18:37 +02:00
Robin Voetter
844c1564d7
CI: Upload vk.zig as artifact
2021-07-02 19:51:14 +02:00
Robin Voetter
a36db3a2f6
Merge pull request #12 from ashpil/master
...
camel -> snake for command enums + fixes
2021-06-27 18:08:41 +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
de0a048f45
Fix another vk.xml moment
2021-06-14 20:49:09 +02:00