SPIR-V: Adapt spec generator to new render api

This commit is contained in:
Robin Voetter 2021-05-12 00:00:44 +02:00
parent d45e7dfc24
commit 6d1a4c8b1e

View File

@ -114,7 +114,8 @@ pub fn main() !void {
try render(buf.writer(), registry);
const tree = try std.zig.parse(allocator, buf.items);
_ = try std.zig.render(allocator, std.io.getStdOut().writer(), tree);
const formatted = try tree.render(allocator);
try std.io.getStdOut().writeAll(formatted);
}
fn render(writer: Writer, registry: Registry) !void {