Gfx GX Fn GXGetPointSize - wowjinxy/libPorpoise GitHub Wiki

GXGetPointSize

  • Category: Geometry and Vertex
  • Matrix Status: Implemented
  • Matrix Notes: Returns tracked GX point size and texture-offset enum.
  • 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:
    • Confirm official signature/prototype
    • Confirm documented side effects (register/state updates)
    • Confirm special behavior and edge cases from manual

libPorpoise Implementation

  • Runtime implementation area: src/gx
  • Public API surface: include/dolphin/gx
  • Notes:
    • Confirm API signature matches SDK
    • Confirm state writes match SDK semantics
    • Confirm backend behavior in PC renderer path

SDK vs Porpoise Diff

  • Signature parity:
    • SDK:
    • Porpoise:
  • Behavioral parity:
    • SDK:
    • Porpoise:
  • Known divergence:

Validation Checklist

  • GX demo coverage checked
  • Pikmin usage path checked
  • Matrix status updated if needed
  • Notes updated with concrete file/function references

Working Notes

  • Docs checked against reference/man/gfx/gx/Geometry/GXGetPointSize.html:
    • Signature matches: void GXGetPointSize(u8* size, GXTexOffset* tex_offsets).
    • Returns point size and tex_offsets previously set by GXSetPointSize.
  • Runtime checked in src/gx/pc_gx.c:
    • Null-safe output writes.
    • Returns tracked GX state values directly:
      • g_gx.point_size
      • g_gx.point_tex_offset
  • Result: docs/runtime parity is correct for this function; no runtime code changes needed.