ci skip; start of update to zig 0.16
Build / build (push) Has been skipped
Test / build_and_test (push) Has been skipped

This commit is contained in:
2026-04-16 22:15:07 +02:00
parent ee0ffbe09d
commit 5be875c07e
15 changed files with 243 additions and 105 deletions
+9
View File
@@ -1,6 +1,7 @@
const std = @import("std");
const builtin = @import("builtin");
const vk = @import("vulkan");
const config = @import("config");
const logger = @import("lib.zig").logger;
@@ -21,7 +22,15 @@ comptime {
const Self = @This();
pub const ObjectType: vk.ObjectType = .instance;
const DeviceAllocator = struct {
pub inline fn allocator(_: @This()) std.mem.Allocator {
return std.heap.smp_allocator;
}
};
physical_devices: std.ArrayList(*Dispatchable(PhysicalDevice)),
threaded: std.Io.Threaded,
allocator: if (config.debug_allocator) std.heap.DebugAllocator(.{}) else DeviceAllocator,
dispatch_table: *const DispatchTable,
vtable: *const VTable,