feat(graphics): migrate native target to 640x360
Intrepid/Prometeu/Runtime/pipeline/head This commit looks good
Intrepid/Prometeu/Runtime/pipeline/head This commit looks good
Centralize the fixed 640x360 RGBA8888/60 Hz contract in the existing HAL. Preserve 8/16/32 tiles and composition, cover partial edges and mixed-size camera movement, and adapt firmware, fixtures, hosts and native tests. Share nearest-neighbor presentation geometry with pointer input. Measure actual framebuffer publications and successful host presentations separately from VM ticks, with bounded opt-in diagnostics and release harnesses. Validated with the complete tooling verify gate, native rendering tests, GPU readback, headless/process integration, formatting and strict clippy. The existing synchronous session path is documented; no worker/session architecture replacement or format compatibility layer is introduced. Work: WRK-0016 / DEC-0001 / PLN-0001 Commit and push explicitly authorized by the user after completion.
This commit is contained in:
@@ -50,15 +50,17 @@ pub fn build_program() -> Vec<u8> {
|
||||
|
||||
let draw = rom.len() as u32;
|
||||
rom.extend(asm(&format!(
|
||||
"PUSH_I32 180\n\
|
||||
PUSH_I32 75\n\
|
||||
"PUSH_I32 {x}\n\
|
||||
PUSH_I32 {y}\n\
|
||||
PUSH_I32 120\n\
|
||||
PUSH_I32 120\n\
|
||||
PUSH_I64 {}\n\
|
||||
GET_LOCAL 0\n\
|
||||
HOSTCALL 1\n\
|
||||
RET",
|
||||
Color::WHITE.raw()
|
||||
Color::WHITE.raw(),
|
||||
x = (prometeu_hal::graphics_contract::WIDTH - 120) / 2,
|
||||
y = (prometeu_hal::graphics_contract::HEIGHT - 120) / 2
|
||||
)));
|
||||
|
||||
patch_jump(&mut rom, jump_to_green_case_offset, green_case);
|
||||
|
||||
@@ -27,8 +27,8 @@ use std::path::PathBuf;
|
||||
|
||||
const STRESS_GLYPH_ASSET_ID: AssetId = 100;
|
||||
const STRESS_SCENE_ASSET_ID: AssetId = 1;
|
||||
const STRESS_VIEWPORT_W: i32 = 480;
|
||||
const STRESS_VIEWPORT_H: i32 = 270;
|
||||
const STRESS_VIEWPORT_W: i32 = prometeu_hal::graphics_contract::WIDTH as i32;
|
||||
const STRESS_VIEWPORT_H: i32 = prometeu_hal::graphics_contract::HEIGHT as i32;
|
||||
const STRESS_SPRITE_COLS: i32 = 48;
|
||||
const STRESS_SPRITE_ROWS: i32 = 24;
|
||||
const STRESS_SPRITE_SPACING_PX: i32 = 10;
|
||||
|
||||
Reference in New Issue
Block a user