moving volk to a deps fetch

This commit is contained in:
2025-11-05 20:51:31 +01:00
parent 8994e19c98
commit 72e24bf954
5 changed files with 10 additions and 7083 deletions

View File

@@ -68,6 +68,8 @@ pub fn build(b: *std.Build) void {
const test_step = b.step(b.fmt("test-{s}", .{impl.name}), b.fmt("Run lib{s} tests", .{impl.name}));
test_step.dependOn(&run_tests.step);
const volk = b.lazyDependency("volk", .{}) orelse continue;
const c_test_exe = b.addExecutable(.{
.name = b.fmt("c_test_vulkan_{s}", .{impl.name}),
.root_module = b.createModule(.{
@@ -77,6 +79,8 @@ pub fn build(b: *std.Build) void {
}),
});
c_test_exe.root_module.addSystemIncludePath(volk.path(""));
c_test_exe.root_module.addCSourceFile(.{
.file = b.path("test/c/main.c"),
.flags = &.{b.fmt("-DLIBVK=\"{s}\"", .{lib.name})},

View File

@@ -22,6 +22,11 @@
.url = "git+https://github.com/FObersteiner/zdt/?ref=v0.8.1#8b551a0a3e5ae64a32b5bad0e6a93119787b43af",
.hash = "zdt-0.8.1-xr0_vAxUDwCJRDh9pcAS_mdZBIsvcGTtN-K8JJSWY4I6",
},
.volk = .{
.url = "git+https://github.com/zeux/volk/#8f53cc717f50f142db4736f401d0b61956cd78f9",
.hash = "N-V-__8AAPn9BwCBHnaxOC_rffCpFI7QRfi5qBCLvov9EYK3",
.lazy = true,
},
},
.paths = .{

View File

@@ -13,7 +13,7 @@
#endif
#define VOLK_IMPLEMENTATION
#include "volk.h"
#include <volk.h>
#define CheckVk(x) \
do { \

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff