From e93aa8d034a56d06f535f05f43509e8893868176 Mon Sep 17 00:00:00 2001 From: Kbz-8 Date: Tue, 5 May 2026 11:39:16 +0200 Subject: [PATCH] fixing soft test --- src/vulkan/Instance.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/Instance.zig b/src/vulkan/Instance.zig index c900cdd..bbcd540 100644 --- a/src/vulkan/Instance.zig +++ b/src/vulkan/Instance.zig @@ -67,7 +67,7 @@ pub fn enumerateExtensionProperties(layer_name: ?[]const u8, count: *u32, p_prop return VkError.LayerNotPresent; } - if (comptime @hasDecl(root.Instance, "EXTENSIONS")) { + if (comptime @hasDecl(root, "Instance") and @hasDecl(root.Instance, "EXTENSIONS")) { count.* = root.Instance.EXTENSIONS.len; if (p_properties) |properties| { for (root.Instance.EXTENSIONS, properties[0..]) |ext, *prop| {