Skip to content

shz_mat4x4_apply_permutation_wxyz

Markdown
SHZ_INLINE void shz_mat4x4_apply_permutation_wxyz(shz_mat4x4_t* mat) SHZ_NOEXCEPT;

Multiplies and accumulates a permutation matrix, which reorders the components of transformed vectors to be in WXYZ order.

NameTypeDescription
matshz_mat4x4_t *

Nothing (void).

  • This routine clobbers XMTRX.
  • _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.