Gfx GX Fn GXGetArray - wowjinxy/libPorpoise GitHub Wiki
GXGetArray
- Category:
Geometry and Vertex
- Matrix Status:
Implemented
- Matrix Notes: Added base pointer + stride getter for indexed attribute arrays.
- Matrix Link: Gfx-GX-API-Matrix
Official SDK (Reference)
- Manual root:
reference/rvlsdk/man/en_US/gx
- Primary SDK source area:
demos/PikminDemo/src/gx (GC-style Dolphin GX source)
- Notes:
libPorpoise Implementation
- Runtime implementation area:
src/gx
- Public API surface:
include/dolphin/gx
- Notes:
SDK vs Porpoise Diff
- Signature parity:
- Behavioral parity:
-
Known divergence:
Validation Checklist
Working Notes
- Docs checked against
reference/man/gfx/gx/Geometry/GXGetArray.html.
- Runtime parity updates in
src/gx/pc_gx.c:
GX_VA_NBT now aliases to GX_VA_NRM array slot on readback (mirrors GXSetArray behavior).
- Accepted attribute range matches SDK-style array attrs (
GX_VA_POS .. GX_LIGHT_ARRAY) with safe early return otherwise.
- Returns stored
base_ptr + stride; null-safe output pointers default to NULL/0 on invalid input.