glsl_layout/mat.rs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186
use crate::vec::{
bvec2, bvec3, bvec4, dvec2, dvec3, dvec4, ivec2, ivec3, ivec4, uvec2, uvec3, uvec4, vec2, vec3,
vec4,
};
use crate::array::{Array, Element};
/// Matrix of 2 x 2 boolean values.
pub type bmat2x2 = Array<bvec2, [Element<bvec2>; 2]>;
/// Matrix of 2 x 3 boolean values.
pub type bmat2x3 = Array<bvec3, [Element<bvec3>; 2]>;
/// Matrix of 2 x 4 boolean values.
pub type bmat2x4 = Array<bvec4, [Element<bvec4>; 2]>;
/// Matrix of 3 x 2 boolean values.
pub type bmat3x2 = Array<bvec2, [Element<bvec2>; 3]>;
/// Matrix of 3 x 3 boolean values.
pub type bmat3x3 = Array<bvec3, [Element<bvec3>; 3]>;
/// Matrix of 3 x 4 boolean values.
pub type bmat3x4 = Array<bvec4, [Element<bvec4>; 3]>;
/// Matrix of 4 x 2 boolean values.
pub type bmat4x2 = Array<bvec2, [Element<bvec2>; 4]>;
/// Matrix of 4 x 3 boolean values.
pub type bmat4x3 = Array<bvec3, [Element<bvec3>; 4]>;
/// Matrix of 4 x 4 boolean values.
pub type bmat4x4 = Array<bvec4, [Element<bvec4>; 4]>;
/// Matrix of 2 x 2 boolean values.
pub type bmat2 = bmat2x2;
/// Matrix of 3 x 3 boolean values.
pub type bmat3 = bmat3x3;
/// Matrix of 4 x 4 boolean values.
pub type bmat4 = bmat4x4;
/// Matrix of 2 x 2 signed integer values.
pub type imat2x2 = Array<ivec2, [Element<ivec2>; 2]>;
/// Matrix of 2 x 3 signed integer values.
pub type imat2x3 = Array<ivec3, [Element<ivec3>; 2]>;
/// Matrix of 2 x 4 signed integer values.
pub type imat2x4 = Array<ivec4, [Element<ivec4>; 2]>;
/// Matrix of 3 x 2 signed integer values.
pub type imat3x2 = Array<ivec2, [Element<ivec2>; 3]>;
/// Matrix of 3 x 3 signed integer values.
pub type imat3x3 = Array<ivec3, [Element<ivec3>; 3]>;
/// Matrix of 3 x 4 signed integer values.
pub type imat3x4 = Array<ivec4, [Element<ivec4>; 3]>;
/// Matrix of 4 x 2 signed integer values.
pub type imat4x2 = Array<ivec2, [Element<ivec2>; 4]>;
/// Matrix of 4 x 3 signed integer values.
pub type imat4x3 = Array<ivec3, [Element<ivec3>; 4]>;
/// Matrix of 4 x 4 signed integer values.
pub type imat4x4 = Array<ivec4, [Element<ivec4>; 4]>;
/// Matrix of 2 x 2 signed integer values.
pub type imat2 = imat2x2;
/// Matrix of 3 x 3 signed integer values.
pub type imat3 = imat3x3;
/// Matrix of 4 x 4 signed integer values.
pub type imat4 = imat4x4;
/// Matrix of 2 x 2 unsiged integer values.
pub type umat2x2 = Array<uvec2, [Element<uvec2>; 2]>;
/// Matrix of 2 x 3 unsiged integer values.
pub type umat2x3 = Array<uvec3, [Element<uvec3>; 2]>;
/// Matrix of 2 x 4 unsiged integer values.
pub type umat2x4 = Array<uvec4, [Element<uvec4>; 2]>;
/// Matrix of 3 x 2 unsiged integer values.
pub type umat3x2 = Array<uvec2, [Element<uvec2>; 3]>;
/// Matrix of 3 x 3 unsiged integer values.
pub type umat3x3 = Array<uvec3, [Element<uvec3>; 3]>;
/// Matrix of 3 x 4 unsiged integer values.
pub type umat3x4 = Array<uvec4, [Element<uvec4>; 3]>;
/// Matrix of 4 x 2 unsiged integer values.
pub type umat4x2 = Array<uvec2, [Element<uvec2>; 4]>;
/// Matrix of 4 x 3 unsiged integer values.
pub type umat4x3 = Array<uvec3, [Element<uvec3>; 4]>;
/// Matrix of 4 x 4 unsiged integer values.
pub type umat4x4 = Array<uvec4, [Element<uvec4>; 4]>;
/// Matrix of 2 x 2 unsiged integer values.
pub type umat2 = umat2x2;
/// Matrix of 3 x 3 unsiged integer values.
pub type umat3 = umat3x3;
/// Matrix of 4 x 4 unsiged integer values.
pub type umat4 = umat4x4;
/// Matrix of 2 x 2 floating-point values.
pub type mat2x2 = Array<vec2, [Element<vec2>; 2]>;
/// Matrix of 2 x 3 floating-point values.
pub type mat2x3 = Array<vec3, [Element<vec3>; 2]>;
/// Matrix of 2 x 4 floating-point values.
pub type mat2x4 = Array<vec4, [Element<vec4>; 2]>;
/// Matrix of 3 x 2 floating-point values.
pub type mat3x2 = Array<vec2, [Element<vec2>; 3]>;
/// Matrix of 3 x 3 floating-point values.
pub type mat3x3 = Array<vec3, [Element<vec3>; 3]>;
/// Matrix of 3 x 4 floating-point values.
pub type mat3x4 = Array<vec4, [Element<vec4>; 3]>;
/// Matrix of 4 x 2 floating-point values.
pub type mat4x2 = Array<vec2, [Element<vec2>; 4]>;
/// Matrix of 4 x 3 floating-point values.
pub type mat4x3 = Array<vec3, [Element<vec3>; 4]>;
/// Matrix of 4 x 4 floating-point values.
pub type mat4x4 = Array<vec4, [Element<vec4>; 4]>;
/// Matrix of 2 x 2 floating-point values.
pub type mat2 = mat2x2;
/// Matrix of 3 x 3 floating-point values.
pub type mat3 = mat3x3;
/// Matrix of 4 x 4 floating-point values.
pub type mat4 = mat4x4;
/// Matrix of 2 x 2 double-precision floating-point values.
pub type dmat2x2 = Array<dvec2, [Element<dvec2>; 2]>;
/// Matrix of 2 x 3 double-precision floating-point values.
pub type dmat2x3 = Array<dvec3, [Element<dvec3>; 2]>;
/// Matrix of 2 x 4 double-precision floating-point values.
pub type dmat2x4 = Array<dvec4, [Element<dvec4>; 2]>;
/// Matrix of 3 x 2 double-precision floating-point values.
pub type dmat3x2 = Array<dvec2, [Element<dvec2>; 3]>;
/// Matrix of 3 x 3 double-precision floating-point values.
pub type dmat3x3 = Array<dvec3, [Element<dvec3>; 3]>;
/// Matrix of 3 x 4 double-precision floating-point values.
pub type dmat3x4 = Array<dvec4, [Element<dvec4>; 3]>;
/// Matrix of 4 x 2 double-precision floating-point values.
pub type dmat4x2 = Array<dvec2, [Element<dvec2>; 4]>;
/// Matrix of 4 x 3 double-precision floating-point values.
pub type dmat4x3 = Array<dvec3, [Element<dvec3>; 4]>;
/// Matrix of 4 x 4 double-precision floating-point values.
pub type dmat4x4 = Array<dvec4, [Element<dvec4>; 4]>;
/// Matrix of 2 x 2 double-precision floating-point values.
pub type dmat2 = dmat2x2;
/// Matrix of 3 x 3 double-precision floating-point values.
pub type dmat3 = dmat3x3;
/// Matrix of 4 x 4 double-precision floating-point values.
pub type dmat4 = dmat4x4;