namespace ComputeSharp; /// /// A type indicating a base-1 index into a matrix type. This can be used to extract references to swizzled vectors within a given matrix value. /// For more info, see . /// This type is meant to be used within a directive to simplify the code: /// /// /// using static ComputeSharp.MatrixIndex; /// Float2x2 matrix = 0; /// Float2 row = matrix[M11, M12]; /// /// /// public enum MatrixIndex { /// /// The first item in the first row. /// M11, /// /// The second item in the first row. /// M12, /// /// The third item in the first row. /// M13, /// /// The fourth item in the first row. /// M14, /// /// The first item in the second row. /// M21, /// /// The second item in the second row. /// M22, /// /// The third item in the second row. /// M23, /// /// The fourth item in the second row. /// M24, /// /// The first item in the third row. /// M31, /// /// The second item in the third row. /// M32, /// /// The third item in the third row. /// M33, /// /// The fourth item in the third row. /// M34, /// /// The first item in the fourth row. /// M41, /// /// The second item in the fourth row. /// M42, /// /// The third item in the fourth row. /// M43, /// /// The fourth item in the fourth row. /// M44 }