Add GLM_META_PROG_HELPERS tests to each type
- Add new tests to the matrix types - Add vector tests to use the static values instead of constants - Wrap the quaternion tests in #ifdefs - Add new tests to the simdMat4 and simdVec4 tests
This commit is contained in:
@@ -256,6 +256,15 @@ int main()
|
||||
{
|
||||
int Error = 0;
|
||||
|
||||
#ifdef GLM_META_PROG_HELPERS
|
||||
assert(glm::simdMat4::rows == glm::simdMat4::row_type::components);
|
||||
assert(glm::simdMat4::cols == glm::simdMat4::col_type::components);
|
||||
|
||||
assert(glm::simdMat4::components == glm::simdMat4::pure_type::components);
|
||||
assert(glm::simdMat4::rows == glm::simdMat4::pure_row_type::components);
|
||||
assert(glm::simdMat4::cols == glm::simdMat4::pure_col_type::components);
|
||||
#endif
|
||||
|
||||
std::vector<glm::mat4> Data(64 * 64 * 1);
|
||||
for(std::size_t i = 0; i < Data.size(); ++i)
|
||||
Data[i] = glm::mat4(
|
||||
|
||||
Reference in New Issue
Block a user