shz_quat_load_wxyz
SHZ_INLINE shz_quat_t shz_quat_load_wxyz(const void* data) SHZ_NOEXCEPT;Loads a layout-compatible chunk of memory as a shz_quat_t in WXYZ order.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
data | const void * | Memory chunk to be loaded as a shz_quat_t. |
Returns
Section titled “Returns”data loaded into a shz_quat_t.
- This is a zero-overhead conversion, typically.
Warnings
Section titled “Warnings”datamust be a 4-byte aligned set of 4 contiguous floats in-memory.
Naming and requirements
Section titled “Naming and requirements”_wxyz: Register/column permutation so thatFTRVyields W first (cycle 4 instead of 7), which helps perspective division. (Naming and Suffixes)
Availability
Section titled “Availability”- C++ equivalent:
shz::quat::load_wxyz - Type-generic form: none
- Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_quat.h:448 - Module: Quaternion, section "Adapters"