adding negate opcodes
All checks were successful
Build / build (push) Successful in 1m50s
Test / build (push) Successful in 5m26s

This commit is contained in:
2026-02-24 04:47:38 +01:00
parent 35686c3012
commit 2409ec7269
4 changed files with 78 additions and 9 deletions

View File

@@ -122,11 +122,11 @@ const Runner = struct {
var output: [4]f32 = undefined;
for (0..screen_width) |x| {
try rt.writeInput(f32, &.{timer}, self.time);
try rt.writeInput(f32, &.{ @floatFromInt(screen_width), @floatFromInt(screen_height) }, self.res);
try rt.writeInput(f32, &.{ @floatFromInt(x), @floatFromInt(y) }, self.pos);
try rt.writeInput(&.{timer}, self.time);
try rt.writeInput(&.{ @floatFromInt(screen_width), @floatFromInt(screen_height) }, self.res);
try rt.writeInput(&.{ @floatFromInt(x), @floatFromInt(y) }, self.pos);
try rt.callEntryPoint(self.allocator, self.entry);
try rt.readOutput(f32, output[0..], self.color);
try rt.readOutput(output[0..], self.color);
const rgba = self.surface.mapRgba(
@intCast(@max(@min(@as(i32, @intFromFloat(output[0] * 255.0)), 255), 0)),