forked from mirror/vulkan-zig
Replace anytype with explicit []const {s}Command
This commit is contained in:
committed by
Robin Voetter
parent
59c5b88d17
commit
9513d33bf8
@@ -1015,10 +1015,9 @@ fn Renderer(comptime WriterType: type) type {
|
|||||||
};
|
};
|
||||||
|
|
||||||
try self.writer.print(
|
try self.writer.print(
|
||||||
\\pub fn {s}Wrapper(comptime cmds: anytype) type {{
|
\\pub fn {s}Wrapper(comptime cmds: []const {s}Command) type {{
|
||||||
\\ const cmd_array: [cmds.len]{s}Command = cmds;
|
|
||||||
\\ comptime var fields: [cmds.len]std.builtin.TypeInfo.StructField = undefined;
|
\\ comptime var fields: [cmds.len]std.builtin.TypeInfo.StructField = undefined;
|
||||||
\\ inline for (cmd_array) |cmd, i| {{
|
\\ inline for (cmds) |cmd, i| {{
|
||||||
\\ const PfnType = cmd.PfnType();
|
\\ const PfnType = cmd.PfnType();
|
||||||
\\ fields[i] = .{{
|
\\ fields[i] = .{{
|
||||||
\\ .name = cmd.symbol(),
|
\\ .name = cmd.symbol(),
|
||||||
|
|||||||
Reference in New Issue
Block a user