[Soft] adding new experimental shader interpreter based on new IR
Mirror Gitea refs to GitHub / mirror (push) Successful in 31s
Test / build_and_test (push) Successful in 11m51s
Build / build (push) Successful in 15m19s

This commit is contained in:
2026-08-08 00:42:13 +02:00
parent 937b84cbc3
commit f40e5b742d
20 changed files with 1635 additions and 38 deletions
+8 -11
View File
@@ -43,17 +43,7 @@ pub fn main() !void {
var status = Status.pass;
slowest.startTiming();
const friendly_name = blk: {
const name = t.name;
var it = std.mem.splitScalar(u8, name, '.');
while (it.next()) |value| {
if (std.mem.eql(u8, value, "test")) {
const rest = it.rest();
break :blk if (rest.len > 0) rest else name;
}
}
break :blk name;
};
const friendly_name = friendlyName(t.name);
current_test = friendly_name;
std.testing.allocator_instance = .{};
@@ -220,6 +210,13 @@ pub const panic = std.debug.FullPanic(struct {
}
}.panicFn);
fn friendlyName(name: []const u8) []const u8 {
const marker = ".test.";
const index = std.mem.lastIndexOf(u8, name, marker) orelse return name;
const suffix = name[index + marker.len ..];
return if (suffix.len > 0) suffix else name;
}
fn isUnnamed(t: std.builtin.TestFn) bool {
const marker = ".test_";
const test_name = t.name;