Merge pull request #5 from antlilja/pnext-optional

Removed special case for member pNext.
This commit is contained in:
Robin Voetter
2020-12-04 20:50:49 +01:00
committed by GitHub
2 changed files with 1 additions and 6 deletions

View File

@@ -8,7 +8,7 @@ A Vulkan binding generator for Zig.
vulkan-zig attempts to provide a better experience to programming Vulkan applications in Zig, by providing features such as integration of vulkan errors with Zig's error system, function pointer loading, renaming fields to standard Zig style, better bitfield handling, turning out parameters into return values and more.
vulkan-zig is automatically tested against the latest vk.xml and zig, and supports vk.xml from version 1.x.141.
vulkan-zig is automatically tested against the latest vk.xml and zig, and supports vk.xml from version 1.x.163.
## Features
### CLI-interface

View File

@@ -190,11 +190,6 @@ fn parseContainer(allocator: *Allocator, ty: *xml.Element, is_union: bool) !regi
for (members) |*member| {
const member_elem = it.next().?;
try parsePointerMeta(.{.container = members}, &member.field_type, member_elem);
// pNext isn't properly marked as optional, so just manually override it,
if (mem.eql(u8, member.name, "pNext")) {
member.field_type.pointer.is_optional = true;
}
}
return registry.Declaration {