implements PLN-0100

This commit is contained in:
2026-06-15 05:46:28 +01:00
parent a268bd0b75
commit 18cfeedbff
8 changed files with 62 additions and 16 deletions
@@ -302,7 +302,11 @@ mod tests {
color: Color::BLUE,
}];
hardware.publish_render_submission(&RenderSubmission::game2d(FrameId::ZERO, packet));
RenderSubmissionSink::submit_render_submission(
&mut hardware,
RenderSubmission::game2d(FrameId::ZERO, packet),
)
.expect("local sink should publish Game2D packet");
assert_eq!(hardware.gfx.front_buffer()[0], Color::BLUE.raw());
}
@@ -340,7 +344,11 @@ mod tests {
);
hardware.begin_frame();
hardware.publish_render_submission(&RenderSubmission::game2d(FrameId::ZERO, packet));
RenderSubmissionSink::submit_render_submission(
&mut hardware,
RenderSubmission::game2d(FrameId::ZERO, packet),
)
.expect("local sink should publish Game2D packet");
assert_eq!(hardware.gfx.front_buffer()[0], Color::RED.raw());
}