somehwat of a success... but bloated.

This commit is contained in:
ed
2026-07-07 00:39:25 -04:00
parent b17a653d20
commit 93bab89f76
10 changed files with 1887 additions and 72 deletions
@@ -4,9 +4,6 @@
#pragma region hello_gte_tape
// Dispatch macro: token-pastes <tag>_<target> to the enum name
#undef atom_offset
#define atom_offset(tag, name) atom_offset_##tag##_##name
// --- atom: floor_tri (32 words) ---
+1
View File
@@ -14,6 +14,7 @@
#include "duffle/gte.h"
# include "duffle/gen/lottes_tape.offsets.h"
#include "duffle/atom_dsl.h"
#include "duffle/lottes_tape.h"
# include "tape_atom.metadata.h"
+9 -1
View File
@@ -1,5 +1,6 @@
#ifdef INTELLISENSE_DIRECTIVES
# include "duffle/lottes_tape.h"
# include "duffle/atom_dsl.h"
# include "hello_gte.h"
# include "tape_atom.metadata.h"
# include "gen/hello_gte_tape.offsets.h"
@@ -22,7 +23,14 @@
#pragma region Baked Atoms
internal MipsAtom_(floor_tri) {
atom_region( floor_tri, REGION_PRIM_ARENA)
atom_group( floor_tri, GROUP_RENDER_FLOOR)
atom_cadence(floor_tri, CADENCE_FRAME)
atom_annot( floor_tri, phase_work,
tape_regs(R_PrimCursor, R_FaceCursor, R_VertBase, R_OtBase),
tape_regs(R_PrimCursor, R_FaceCursor))
internal
MipsAtom_(floor_tri) {
// T0-T2 allocated
mac_load_tri_indices(R_T0, R_T1, R_T2),
// load_half_u(R_T0, R_FaceCur, 0 * S_(S2))
-4
View File
@@ -41,7 +41,3 @@ WORD_COUNT(mac_insert_ot_tag, 11)
WORD_COUNT(mac_yield, 4)
#undef WORD_COUNT
// Used to define word markers for the lua metaprogram to calculate offsets from.
#define atom_label(sym)
// #define atom_offset(sym) // will be generated based on usage within a baked atom.