Fixed Cuda build, no support of __declspec(align(alignment))

This commit is contained in:
Christophe Riccio
2016-08-09 20:05:19 +02:00
parent 39020ad727
commit ec8fa4623c
3 changed files with 7 additions and 3 deletions

View File

@@ -12,6 +12,9 @@
#if !GLM_HAS_ALIGNED_TYPE
# error "GLM: Aligned types are not supported on this platform"
#endif
#if GLM_COMPILER & GLM_COMPILER_CUDA
# error "GLM: GTC_type_aligned is not supported on Cuda due to lack of __declspec(align(alignment)) support, issue #539"
#endif
#if(defined(GLM_MESSAGES) && !defined(glm_ext))
# pragma message("GLM: GLM_GTC_type_aligned extension included")
@@ -30,8 +33,6 @@ namespace glm
template <typename T, precision P> struct tvec2;
template <typename T, precision P> struct tvec3;
template <typename T, precision P> struct tvec4;
/// @addtogroup gtc_type_aligned
/// @{