Skip to content

shz_xmtrx_load_wxyz_4x4

Markdown
SHZ_INLINE void shz_xmtrx_load_wxyz_4x4(const shz_mat4x4_t* matrix) SHZ_NOEXCEPT;

Loads the given 4x4 matrix as XMTRX, with the 4th column for translation being loaded as the first column.

NameTypeDescription
matrixconst shz_mat4x4_t *

Nothing (void).

  • _wxyz: Register/column permutation so that FTRV yields W first (cycle 4 instead of 7), which helps perspective division. (Naming and Suffixes)
  • shz_mat4x4_t and shz_mat2x2_t arguments must be 8-byte aligned. Unaligned data goes through the float[16] parameters of the _unaligned routines.