[WSI] implementing xcb and xlib surfaces
Mirror Gitea refs to GitHub / mirror (push) Successful in 13s
Test / build_and_test (push) Successful in 6m2s
Build / build (push) Successful in 7m0s

This commit is contained in:
2026-08-26 21:38:56 +02:00
parent 2525dded67
commit 148ed9b441
15 changed files with 1829 additions and 151 deletions
+5
View File
@@ -31,6 +31,7 @@ pub const VTable = struct {
getCapabilities: *const fn (*const Self, *vk.SurfaceCapabilitiesKHR) VkError!void,
attachImage: *const fn (*Self, std.mem.Allocator, *PresentImage) VkError!void,
detachImage: *const fn (*Self, std.mem.Allocator, *PresentImage) VkError!void,
waitForImage: *const fn (*Self, u64) VkError!void,
presentImage: *const fn (*Self, std.mem.Allocator, *PresentImage) VkError!void,
};
@@ -81,6 +82,10 @@ pub inline fn detachImage(self: *Self, allocator: std.mem.Allocator, image: *Pre
try self.vtable.detachImage(self, allocator, image);
}
pub inline fn waitForImage(self: *Self, timeout: u64) VkError!void {
try self.vtable.waitForImage(self, timeout);
}
pub inline fn presentImage(self: *Self, allocator: std.mem.Allocator, image: *PresentImage) VkError!void {
try self.vtable.presentImage(self, allocator, image);
}