code wiki / (root) / nx_graphics_demo_test.nx

nx_graphics_demo_test.nx

buildroot/runtime/nx_graphics_demo_test.nx

4364 B118 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind gate/prooftopic graphics
docsdependenciesstructsconstsfunctions

about

nx_graphics_demo_test.nx -- end-to-end G1 pipeline KAT. Proves the full bits-up graphics path from raster to viewable image: alloc fb -> clear black -> rasterize triangle (Pineda edge fn) -> present via swapchain (PPM_BUFFER destination) -> verify PPM bytes Composes: nx_framebuffer.nx (i64 cell buffer + clear + set + pack_rgba) nx_raster_sw.nx (Pineda triangle rasterizer) nx_swapchain.nx (destination abstraction) nx_ppm_writer.nx (PPM P6 serializer, via swapchain) This is the substrate-honest "see it work end-to-end" gate for NISHI_GRAPHICS_ROADMAP G1. Same primitives, ONE call.

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_framebuffer.nx nx_raster_sw.nx nx_swapchain.nx nx_graphics_demo_test.nx

imports: nx_syscalls.nxnx_framebuffer.nxnx_raster_sw.nxnx_swapchain.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nx_fb_alloc sys_mmap nx_fb_pack_rgba nx_fb_clear nx_raster_triangle nx_raster_signed_area_2x nx_raster_min3 nx_raster_max3 nx_raster_clamp nx_raster_edge nx_fb_set nx_fb_get sys_mmap ↻ nx_swap_present nx_swap_dest_is_valid sys_mmap ↻ nx_swap_extract_rgb_bytes ppm_write_p6 ppm_write_p6_header pwr_put pwr_put_dec sys_mmap ↻

structs

none

consts

none

functions

22func main() -> i64