Gfx GX Fn GXGetTlutObjFmt - wowjinxy/libPorpoise GitHub Wiki
GXGetTlutObjFmt
- Category:
Texture
- Matrix Status:
Implemented
- Matrix Notes: Getter returns TLUT format.
- Matrix Link: Gfx-GX-API-Matrix
Official SDK (Reference)
- Manual page:
reference/man/gfx/gx/Texture/GXGetTlutObjFmt.html
- SDK source:
reference/ACGC-PC-Port/src/static/dolphin/gx/GXTexture.c (GXGetTlutObjFmt)
- SDK behavior:
- Returns TLUT format (
GXTlutFmt) from TLUT object state.
- No state mutation; pure accessor.
- SDK debug path asserts non-null TLUT object pointer.
libPorpoise Implementation
- Public API declaration:
include/dolphin/gx/GXGet.h
- Runtime implementation:
src/gx/pc_gx_texture.c (GXGetTlutObjFmt)
- Behavior:
- Returns format from
TLUTOBJ_FORMAT in PC-side TLUT object storage.
- No side effects.
SDK vs Porpoise Diff
- Signature parity:
- Manual documents
GXTlutObj*; SDK source uses const GXTlutObj*.
- Porpoise uses
GXTlutObj*; call-site semantics are equivalent for reads.
- Behavioral parity:
- SDK: returns TLUT format from object.
- Porpoise: same.
- Known divergence:
- SDK has explicit debug assert on null pointer; Porpoise accessor does not assert in this path.
Validation Checklist
Working Notes
- No runtime code change required in this pass.