forked from mirror/vulkan-zig
Merge pull request #5 from antlilja/pnext-optional
Removed special case for member pNext.
This commit is contained in:
@@ -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 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
|
## Features
|
||||||
### CLI-interface
|
### CLI-interface
|
||||||
|
|||||||
@@ -190,11 +190,6 @@ fn parseContainer(allocator: *Allocator, ty: *xml.Element, is_union: bool) !regi
|
|||||||
for (members) |*member| {
|
for (members) |*member| {
|
||||||
const member_elem = it.next().?;
|
const member_elem = it.next().?;
|
||||||
try parsePointerMeta(.{.container = members}, &member.field_type, member_elem);
|
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 {
|
return registry.Declaration {
|
||||||
|
|||||||
Reference in New Issue
Block a user