From a17f795aaf513ce5f52e513aac5c5902a2b6e7e9 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Tue, 1 Nov 2016 22:36:49 +0100 Subject: [PATCH] Added GTX_vec_swizzle, faster compile time swizzling then swizzle operator #558 --- glm/ext.hpp | 1 + glm/{gtc => gtx}/vec_swizzle.hpp | 0 readme.md | 1 + test/gtx/CMakeLists.txt | 1 + test/gtx/gtx_vec_swizzle.cpp | 10 ++++++++++ 5 files changed, 13 insertions(+) rename glm/{gtc => gtx}/vec_swizzle.hpp (100%) create mode 100644 test/gtx/gtx_vec_swizzle.cpp diff --git a/glm/ext.hpp b/glm/ext.hpp index 204f3580..b43f5644 100644 --- a/glm/ext.hpp +++ b/glm/ext.hpp @@ -104,6 +104,7 @@ #endif #include "./gtx/transform.hpp" #include "./gtx/transform2.hpp" +#include "./gtx/vec_swizzle.hpp" #include "./gtx/vector_angle.hpp" #include "./gtx/vector_query.hpp" #include "./gtx/wrap.hpp" diff --git a/glm/gtc/vec_swizzle.hpp b/glm/gtx/vec_swizzle.hpp similarity index 100% rename from glm/gtc/vec_swizzle.hpp rename to glm/gtx/vec_swizzle.hpp diff --git a/readme.md b/readme.md index d8668cf6..ace045dd 100644 --- a/readme.md +++ b/readme.md @@ -54,6 +54,7 @@ glm::mat4 camera(float Translate, glm::vec2 const & Rotate) ##### Features: - Added RGBM encoding in GTC_packing #420 - Added GTC_color_encoding extension +- Added GTX_vec_swizzle, faster compile time swizzling then swizzle operator #558 ##### Improvements: - Added lowp variant of GTC_colorspace convertLinearToSRGB #419 diff --git a/test/gtx/CMakeLists.txt b/test/gtx/CMakeLists.txt index 5ad06cde..23b92813 100644 --- a/test/gtx/CMakeLists.txt +++ b/test/gtx/CMakeLists.txt @@ -44,6 +44,7 @@ glmCreateTestGTC(gtx_spline) glmCreateTestGTC(gtx_string_cast) glmCreateTestGTC(gtx_type_aligned) glmCreateTestGTC(gtx_type_trait) +glmCreateTestGTC(gtx_vec_swizzle) glmCreateTestGTC(gtx_vector_angle) glmCreateTestGTC(gtx_vector_query) glmCreateTestGTC(gtx_wrap) diff --git a/test/gtx/gtx_vec_swizzle.cpp b/test/gtx/gtx_vec_swizzle.cpp new file mode 100644 index 00000000..7d004038 --- /dev/null +++ b/test/gtx/gtx_vec_swizzle.cpp @@ -0,0 +1,10 @@ +#include + +int main() +{ + int Error = 0; + + + return Error; +} +