forked from mirror/vulkan-zig
fix: change ComptimeStringMap to StaticStringMap
reflect changes made in 8af59d1f98
This commit is contained in:
@@ -96,7 +96,7 @@ const preamble =
|
|||||||
\\
|
\\
|
||||||
;
|
;
|
||||||
|
|
||||||
const builtin_types = std.ComptimeStringMap([]const u8, .{
|
const builtin_types = std.StaticStringMap([]const u8).initComptime(.{
|
||||||
.{ "void", @typeName(void) },
|
.{ "void", @typeName(void) },
|
||||||
.{ "char", @typeName(u8) },
|
.{ "char", @typeName(u8) },
|
||||||
.{ "float", @typeName(f32) },
|
.{ "float", @typeName(f32) },
|
||||||
@@ -113,7 +113,7 @@ const builtin_types = std.ComptimeStringMap([]const u8, .{
|
|||||||
.{ "int", @typeName(c_int) },
|
.{ "int", @typeName(c_int) },
|
||||||
});
|
});
|
||||||
|
|
||||||
const foreign_types = std.ComptimeStringMap([]const u8, .{
|
const foreign_types = std.StaticStringMap([]const u8).initComptime(.{
|
||||||
.{ "Display", "opaque {}" },
|
.{ "Display", "opaque {}" },
|
||||||
.{ "VisualID", @typeName(c_uint) },
|
.{ "VisualID", @typeName(c_uint) },
|
||||||
.{ "Window", @typeName(c_ulong) },
|
.{ "Window", @typeName(c_ulong) },
|
||||||
@@ -425,13 +425,13 @@ fn Renderer(comptime WriterType: type) type {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn classifyCommandDispatch(name: []const u8, command: reg.Command) CommandDispatchType {
|
fn classifyCommandDispatch(name: []const u8, command: reg.Command) CommandDispatchType {
|
||||||
const device_handles = std.ComptimeStringMap(void, .{
|
const device_handles = std.StaticStringMap(void).initComptime(.{
|
||||||
.{ "VkDevice", {} },
|
.{ "VkDevice", {} },
|
||||||
.{ "VkCommandBuffer", {} },
|
.{ "VkCommandBuffer", {} },
|
||||||
.{ "VkQueue", {} },
|
.{ "VkQueue", {} },
|
||||||
});
|
});
|
||||||
|
|
||||||
const override_functions = std.ComptimeStringMap(CommandDispatchType, .{
|
const override_functions = std.StaticStringMap(CommandDispatchType).initComptime(.{
|
||||||
.{ "vkGetInstanceProcAddr", .base },
|
.{ "vkGetInstanceProcAddr", .base },
|
||||||
.{ "vkCreateInstance", .base },
|
.{ "vkCreateInstance", .base },
|
||||||
.{ "vkEnumerateInstanceLayerProperties", .base },
|
.{ "vkEnumerateInstanceLayerProperties", .base },
|
||||||
|
|||||||
Reference in New Issue
Block a user