Gfx GX Fn GXGetVtxDesc - wowjinxy/libPorpoise GitHub Wiki
GXGetVtxDesc
- Category:
Geometry and Vertex
- Matrix Status:
Implemented
- Matrix Notes: Returns current descriptor type per attribute.
- 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/GXGetVtxDesc.html:
- Signature matches:
void GXGetVtxDesc(GXAttr attr, GXAttrType* type).
- Behavior: returns current descriptor type for a single attribute in active vertex descriptor state.
- Runtime checked in
src/gx/pc_gx.c:
- Null-safe output pointer guard (
if (!type) return;).
- Returns
g_gx.vtx_desc[attr] for valid attributes.
- Out-of-range attributes return
GX_NONE (safe PC-side fallback).