Repository navigation
Gfx GX Fn GXSetTevColorIn
wowjinxy edited this page Apr 9, 2026
·
2 revisions
- Category:
Texture Environment - Matrix Status:
Implemented - Matrix Notes: Implemented with typed TEV color args and per-stage state updates.
- Matrix Link: Gfx-GX-API-Matrix
- Manual page:
reference/man/gfx/gx/Tev/GXSetTevColorIn.html - SDK source:
reference/ACGC-PC-Port/src/static/dolphin/gx/GXTev.c(GXSetTevColorIn) - SDK behavior:
- Programs TEV color combiner inputs
a,b,c,dfor a specific TEV stage. - Writes TEV stage color-input register fields; no direct color-op mutation.
- SDK debug path asserts stage range and argument ranges (
a..d <= 15). - HW2 note: this API does not modify texture component swap mode; swap selection is handled via
GXSetTevSwapMode/GXSetTevSwapModeTable.
- Programs TEV color combiner inputs
- Public API declaration:
include/dolphin/gx/GXTev.h - Runtime implementation:
src/gx/pc_gx.c(GXSetTevColorIn) - Behavior:
- Stores
a,b,c,dper TEV stage in renderer state and marks TEV state dirty. - Does not modify swap mode state (HW2-style behavior).
- Ignores out-of-range stage by returning early.
- Stores
- Signature parity:
- Signatures match (
GXTevStageID, fourGXTevColorArgoperands).
- Signatures match (
- Behavioral parity:
- Stage-local color-input programming behavior matches intended TEV semantics.
- No implicit swap-mode mutation, aligned with HW2 documentation.
- Known divergence:
- SDK debug path asserts on invalid stage/operand ranges; Porpoise fail-soft ignores invalid stage and does not enforce operand-range asserts in this setter path.
- GX demo coverage checked
- Pikmin usage path checked
- Matrix status updated if needed
- Notes updated with concrete file/function references
- No runtime code change required in this pass.