Attempt to fix vulkan-zig on windows: Make dispatchers accept anytype as loader, properly escape paths in build.zig

This commit is contained in:
Robin Voetter
2020-09-24 13:41:58 +02:00
parent e0000e4818
commit 7888df1bd3
2 changed files with 27 additions and 10 deletions

View File

@@ -810,9 +810,9 @@ fn Renderer(comptime WriterType: type) type {
fn renderWrapperLoader(self: *Self, dispatch_type: CommandDispatchType) !void {
const params = switch (dispatch_type) {
.base => "loader: PfnGetInstanceProcAddr",
.instance => "instance: Instance, loader: PfnGetInstanceProcAddr",
.device => "device: Device, loader: PfnGetDeviceProcAddr",
.base => "loader: anytype",
.instance => "instance: Instance, loader: anytype",
.device => "device: Device, loader: anytype",
};
const loader_first_param = switch (dispatch_type) {