Skip to main content
← PSoXide SDK guides and examples · SDK f2fec1c301f1 · All Cargo features enabled; check feature gates before use.

Crate psx_gte_core

Crate psx_gte_core 

Source
Expand description

Pure-Rust GTE shared math types and host state machine.

The math types are register-shaped and are available on every target. The full software GTE state machine is compiled only for non-MIPS builds: on real PS1 hardware the SDK talks to COP2 directly instead of running the simulator on the CPU.

No I/O, no inline assembly, no PS1 hardware bindings. Everything is core::cmp-only arithmetic; safe to use from any host or target.

  • math: fixed-point types (Vec3I16, Vec3I32, Mat3I16) shared across the GTE / GPU layers.
  • state::Gte (non-MIPS only): full register state + the 21 documented function opcodes (RTPS / RTPT / MVMVA / NCLIP / NCDS / AVSZ3 / etc.). Driven via Gte::execute with a 32-bit command word.

Re-exports§

pub use math::Mat3I16;
pub use math::Vec3I16;
pub use math::Vec3I32;
pub use state::Gte;
pub use state::GteProfileSnapshot;
pub use transform::cos_1_3_12;
pub use transform::sin_1_3_12;

Modules§

math
Fixed-point math types for GTE inputs/outputs.
state
GTE – Geometry Transformation Engine (COP2).
transform
Composable 3D transform math operating on Mat3I16 / Vec3I16.