adding base for intel backend
Test / build_and_test (push) Successful in 25s
Build / build (push) Successful in 36s

This commit is contained in:
2026-06-16 05:06:20 +02:00
parent c9961ea346
commit 38f802b294
27 changed files with 2570 additions and 0 deletions
+26
View File
@@ -38,6 +38,13 @@ const implementations = [_]ImplementationDesc{
.custom = customSoft,
.options = optionsSoft,
},
.{
.name = "intel",
.root_source_file = "src/intel/lib.zig",
.vulkan_version = .{ .major = 1, .minor = 0, .patch = 0 },
.custom = customIntel,
.options = optionsIntel,
},
};
const RunningMode = enum {
@@ -270,6 +277,25 @@ fn optionsSoft(b: *std.Build, options: *Step.Options) !void {
options.addOption(bool, "soft_approximates_rgb", approxiamte_rgb_option);
}
fn customIntel(
_: *std.Build,
_: *Step.Compile,
lib_mod: *std.Build.Module,
_: *std.Build.Module,
_: *std.Build.Module,
base_c_mod: *std.Build.Module,
_: std.Build.ResolvedTarget,
_: std.builtin.OptimizeMode,
_: bool,
) !void {
lib_mod.addImport("intel_c", base_c_mod);
}
fn optionsIntel(b: *std.Build, options: *Step.Options) !void {
_ = b;
_ = options;
}
fn addCTS(b: *std.Build, target: std.Build.ResolvedTarget, impl: *const ImplementationDesc, impl_lib: *Step.Compile, comptime mode: RunningMode) !*Step {
const cts = b.dependency("cts_bin", .{});