nx_textured_tri.nx
buildroot/runtime/nx_textured_tri.nx
about
nx_textured_tri.nx -- TEXTURED TRIANGLE rasterizer: barycentric edge-function fill + per-fragment UV
interpolation + nx_tex_sample (bilinear). This closes the "texture mapping" residual = an image mapped ONTO
a rasterized surface (real texture MAPPING, not just a standalone sampler). Pure integer, deterministic.
license_tier: ORIGINAL
dependencies 2 imports · 3 importers
imports: nx_syscalls.nxnx_tex_sample.nx
imported by: nx_raster_bench.nxnx_textured_tri_fast.nxnx_textured_tri_gate.nx
structs
| none |
consts
| none |
functions
| 9 | func tt_edge(ax: i64, ay: i64, bx: i64, by: i64, px: i64, py: i64) -> i64 |
| 14 | func txtri_render(fb: *Image, tex: *Image, x0: i64, y0: i64, u0: i64, v0: i64, x1: i64, y1: i64, u1: i64, v1: i64, x2: i64, y2: i64, u2: i64, v2: i64) -> i64 |