forked from mirror/vulkan-zig
fix parsing issues with vk 1.3.278
This change introduced len/optional attributes for arrays. Previously, we assumed that these would only occur on pointers, but now, this information is also available for arrays. This adapts the registery and parsing code to also parse these properly. No modifications are made to the rendering part as of yet, since these partially filled arrays cannot be cleanly represented in Zig.
This commit is contained in:
@@ -386,6 +386,8 @@ fn parseDeclaration(allocator: Allocator, xctok: *XmlCTokenizer, ptrs_optional:
|
||||
inner_type.* = .{
|
||||
.array = .{
|
||||
.size = array_size,
|
||||
.valid_size = .all, // Refined later
|
||||
.is_optional = true,
|
||||
.child = child,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user