You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to generate the zig file from the latest (as of writing) vk.xml file: https://raw.githubusercontent.com/KhronosGroup/Vulkan-Docs/463f8c616f49fb83ae4736de0d84b0048a7c76e2/xml/vk.xml
I got a runtime InvalidRegistry error in parsePointerMeta in the else case of the it.next().
With the debugger I found it had to do with paramCount, which was only added in VkCudaLaunchInfoNV, so when I commented this out, it seemed to work. I don't think this should be deemed as a solution.
I don't know whether the XML is wrong (looks fine to me though) or the generator is missing something, but I do think this needs solving.
The output (I formatted, so the line nr may not be the same as in git):
error: InvalidRegistry
/home/tates/projects/vulkan-zig/generator/vulkan/parse.zig:346:17: 0x24c86c in parsePointerMeta (generator)
return error.InvalidRegistry;
^
/home/tates/projects/vulkan-zig/generator/vulkan/parse.zig:240:9: 0x24de0e in parseContainer (generator)
try parsePointerMeta(.{ .container = members }, &member.field_type, member_elem);
^
/home/tates/projects/vulkan-zig/generator/vulkan/parse.zig:73:28: 0x24ee69 in parseTypes (generator)
break :blk try parseContainer(allocator, ty, false, api);
^
/home/tates/projects/vulkan-zig/generator/vulkan/parse.zig:48:14: 0x252c5c in parseDeclarations (generator)
count += try parseTypes(allocator, decls, types_elem, api);
^
/home/tates/projects/vulkan-zig/generator/vulkan/parse.zig:27:18: 0x259fbd in parseXml (generator)
.decls = try parseDeclarations(allocator, root, api),
^
/home/tates/projects/vulkan-zig/generator/vulkan/generator.zig:103:24: 0x25a552 in init (generator)
const result = try parseXml(allocator, spec, api);
^
/home/tates/projects/vulkan-zig/generator/vulkan/generator.zig:210:12: 0x27215b in generate__anon_4124 (generator)
=> return error.InvalidRegistry,
^
/home/tates/projects/vulkan-zig/generator/main.zig:78:5: 0x2745d2 in main (generator)
try generator.generate(allocator, api, xml_src, out_buffer.writer());
^
And to be more specific, I commented out the lines 7518 to 7633 in the vk.xml file to avoid the above error.
The text was updated successfully, but these errors were encountered:
optional is supposed to have one bool for each pointer, but it doesn't, and so the generator doesn't know what to do anymore. I've changed this for now to work around the problem by assuming that it is optional, though really it should be fixed in the spec.
When trying to generate the zig file from the latest (as of writing) vk.xml file: https://raw.githubusercontent.com/KhronosGroup/Vulkan-Docs/463f8c616f49fb83ae4736de0d84b0048a7c76e2/xml/vk.xml
I got a runtime
InvalidRegistry
error inparsePointerMeta
in the else case of theit.next()
.With the debugger I found it had to do with
paramCount
, which was only added inVkCudaLaunchInfoNV
, so when I commented this out, it seemed to work. I don't think this should be deemed as a solution.I don't know whether the XML is wrong (looks fine to me though) or the generator is missing something, but I do think this needs solving.
The output (I formatted, so the line nr may not be the same as in git):
And to be more specific, I commented out the lines 7518 to 7633 in the vk.xml file to avoid the above error.
The text was updated successfully, but these errors were encountered: