fc5431d4
Keep default rendering on baseline coverage
a73x 2026-04-09 08:11
Commit message
src/main.zig
| Old | New | ||
|---|---|---|---|
| @@ -402,10 +402,12 @@ fn runTerminal(alloc: std.mem.Allocator) !void { | |||
| 402 | } | 402 | } |
| 403 | } | 403 | } |
| 404 | 404 | ||
| 405 | const baseline_coverage = .{ 1.0, 0.0 }; | ||
| 405 | ctx.drawCells( | 406 | ctx.drawCells( |
| 406 | render_cache.total_instance_count, | 407 | render_cache.total_instance_count, |
| 407 | .{ @floatFromInt(cell_w), @floatFromInt(cell_h) }, | 408 | .{ @floatFromInt(cell_w), @floatFromInt(cell_h) }, |
| 408 | default_bg, | 409 | default_bg, |
| 410 | baseline_coverage, | ||
| 409 | ) catch |err| switch (err) { | 411 | ) catch |err| switch (err) { |
| 410 | error.OutOfDateKHR => { | 412 | error.OutOfDateKHR => { |
| 411 | _ = try ctx.vkd.deviceWaitIdle(ctx.device); | 413 | _ = try ctx.vkd.deviceWaitIdle(ctx.device); |
| @@ -1507,7 +1509,8 @@ fn runDrawSmokeTest(alloc: std.mem.Allocator) !void { | |||
| 1507 | _ = conn.display.readEvents(); | 1509 | _ = conn.display.readEvents(); |
| 1508 | } | 1510 | } |
| 1509 | _ = conn.display.dispatchPending(); | 1511 | _ = conn.display.dispatchPending(); |
| 1510 | ctx.drawCells(1, .{ cell_w, cell_h }, .{ 0.0, 0.0, 0.0, 1.0 }) catch |err| switch (err) { | 1512 | const baseline_coverage = .{ 1.0, 0.0 }; |
| 1513 | ctx.drawCells(1, .{ cell_w, cell_h }, .{ 0.0, 0.0, 0.0, 1.0 }, baseline_coverage) catch |err| switch (err) { | ||
| 1511 | error.OutOfDateKHR => { | 1514 | error.OutOfDateKHR => { |
| 1512 | _ = try ctx.vkd.deviceWaitIdle(ctx.device); | 1515 | _ = try ctx.vkd.deviceWaitIdle(ctx.device); |
| 1513 | try ctx.recreateSwapchain(window.width, window.height); | 1516 | try ctx.recreateSwapchain(window.width, window.height); |