glm/glm/gtx
lpisha 051781e265
Remove ban on using string_cast with CUDA host code
string_cast.hpp merely detects whether the current compiler is NVCC (originally based on `if defined(__CUDACC__)` in glm/simd/platform.h) and throws an error if it is. This means string_cast.hpp cannot be included in any header which might ever be used in a CUDA project.

Of course, glm::to_string can't be used in device (GPU) code. However, the current approach to stop this is both incorrect and unnecessary. __CUDACC__ will be defined in both host and device code compilation, and glm::to_string can obviously be used in host code. The correct define is __CUDA_ARCH__ (will be defined only if compiling device code). However, there's no problem if glm::to_string is defined (the header is included) while compiling device code, as long as it's not actually used in the device code. So, throwing an error if __CUDA_ARCH__ is defined would still prevent string_cast.hpp from being included in CUDA projects.

There's actually no need for any manual check to see if glm::to_string is being used in device code, because the compiler will already check for that. It returns a std::string, which itself can't be used in device code, so it's unlikely a developer would try. And if they did, there would be errors that both glm::to_string and all the needed std::string constructors, stream operators, etc. are host-only functions.
2020-11-18 11:09:53 -08:00
..
associated_min_max.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
associated_min_max.inl glm: Remove redundant double semi-colons 2019-03-01 11:13:28 -08:00
bit.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
bit.inl Refactor headers 2018-08-05 15:22:49 +02:00
closest_point.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
closest_point.inl Refactor headers 2018-08-05 15:22:49 +02:00
color_encoding.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
color_encoding.inl Refactor headers 2018-08-05 15:22:49 +02:00
color_space.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
color_space.inl Refactor headers 2018-08-05 15:22:49 +02:00
color_space_YCoCg.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
color_space_YCoCg.inl Refactor headers 2018-08-05 15:22:49 +02:00
common.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
common.inl Refactor headers 2018-08-05 15:22:49 +02:00
compatibility.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
compatibility.inl Fixed swizzle build on VC 2018-08-18 13:28:18 +02:00
component_wise.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
component_wise.inl Refactor headers 2018-08-05 15:22:49 +02:00
dual_quaternion.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
dual_quaternion.inl Added quaternion EXT extensions 2018-08-07 13:55:13 +02:00
easing.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
easing.inl Refactor headers 2018-08-05 15:22:49 +02:00
euler_angles.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
euler_angles.inl fix: orientate3 types 2020-09-22 00:36:43 -03:00
extend.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
extend.inl Refactor headers 2018-08-05 15:22:49 +02:00
extended_min_max.hpp Added integer matrix extensions and fixed build 2020-02-11 11:44:52 +01:00
extended_min_max.inl Added integer matrix extensions and fixed build 2020-02-11 11:44:52 +01:00
exterior_product.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
exterior_product.inl Refactor headers 2018-08-05 15:22:49 +02:00
fast_exponential.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
fast_exponential.inl fix: fastExp promotion 2020-09-22 00:29:59 -03:00
fast_square_root.hpp fix: fastNormalize ambiguity 2020-09-24 11:27:06 -03:00
fast_square_root.inl Fixed CUDA 9 build #910 2019-09-07 14:32:06 +02:00
fast_trigonometry.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
fast_trigonometry.inl Refactor headers 2018-08-05 15:22:49 +02:00
float_notmalize.inl Refactor headers 2018-08-05 15:22:49 +02:00
functions.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
functions.inl Refactor headers 2018-08-05 15:22:49 +02:00
gradient_paint.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
gradient_paint.inl Refactor headers 2018-08-05 15:22:49 +02:00
handed_coordinate_space.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
handed_coordinate_space.inl Refactor headers 2018-08-05 15:22:49 +02:00
hash.hpp Hash hashes qua instead of tquat closes #919 2019-06-26 12:48:40 +02:00
hash.inl Hash hashes qua instead of tquat closes #919 2019-06-26 12:48:40 +02:00
integer.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
integer.inl Refactor headers 2018-08-05 15:22:49 +02:00
intersect.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
intersect.inl fix: intersectLineTriangle types 2020-09-22 00:37:56 -03:00
io.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
io.inl Fixed build 2018-08-07 14:46:56 +02:00
log_base.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
log_base.inl Refactor headers 2018-08-05 15:22:49 +02:00
matrix_cross_product.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
matrix_cross_product.inl Refactor headers 2018-08-05 15:22:49 +02:00
matrix_decompose.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
matrix_decompose.inl Fixed glm::decompose #869 2019-03-01 15:50:44 +01:00
matrix_factorisation.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
matrix_factorisation.inl Refactor headers 2018-08-05 15:22:49 +02:00
matrix_interpolation.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
matrix_interpolation.inl fix: axisAngle 2020-09-22 00:35:07 -03:00
matrix_major_storage.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
matrix_major_storage.inl Refactor headers 2018-08-05 15:22:49 +02:00
matrix_operation.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
matrix_operation.inl Fixed calculation of m02 minor for mat4x4 adjugate 2020-09-30 03:29:31 +03:00
matrix_query.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
matrix_query.inl Refactor headers 2018-08-05 15:22:49 +02:00
matrix_transform_2d.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
matrix_transform_2d.inl Refactor headers 2018-08-05 15:22:49 +02:00
mixed_product.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
mixed_product.inl Refactor headers 2018-08-05 15:22:49 +02:00
norm.hpp Add lMaxNorm for computing the max norm. 2019-07-20 08:01:59 +01:00
norm.inl Merge branch 'master' into lMaxNorm-proposal 2019-08-25 09:03:13 +01:00
normal.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
normal.inl Refactor headers 2018-08-05 15:22:49 +02:00
normalize_dot.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
normalize_dot.inl Refactor headers 2018-08-05 15:22:49 +02:00
number_precision.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
number_precision.inl Refactor headers 2018-08-05 15:22:49 +02:00
optimum_pow.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
optimum_pow.inl Refactor headers 2018-08-05 15:22:49 +02:00
orthonormalize.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
orthonormalize.inl Refactor headers 2018-08-05 15:22:49 +02:00
perpendicular.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
perpendicular.inl Refactor headers 2018-08-05 15:22:49 +02:00
polar_coordinates.hpp Fixing output order in the documentation of glm::polar 2020-01-06 22:21:02 +02:00
polar_coordinates.inl Refactor headers 2018-08-05 15:22:49 +02:00
projection.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
projection.inl Refactor headers 2018-08-05 15:22:49 +02:00
quaternion.hpp Added missing quat constexpr #955 2019-11-06 15:03:32 +01:00
quaternion.inl Added missing quat constexpr #955 2019-11-06 15:03:32 +01:00
range.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
raw_data.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
raw_data.inl Refactor headers 2018-08-05 15:22:49 +02:00
rotate_normalized_axis.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
rotate_normalized_axis.inl Added quaternion EXT extensions 2018-08-07 13:55:13 +02:00
rotate_vector.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
rotate_vector.inl Refactor headers 2018-08-05 15:22:49 +02:00
scalar_multiplication.hpp Fix Wimplicit-int-float-conversion warnings with clang 10+ 2019-12-27 18:44:52 -08:00
scalar_relational.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
scalar_relational.inl Refactor headers 2018-08-05 15:22:49 +02:00
spline.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
spline.inl Refactor headers 2018-08-05 15:22:49 +02:00
std_based_type.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
std_based_type.inl Refactor headers 2018-08-05 15:22:49 +02:00
string_cast.hpp Remove ban on using string_cast with CUDA host code 2020-11-18 11:09:53 -08:00
string_cast.inl Fixed missing std:: namespace #898 2019-09-07 13:41:08 +02:00
texture.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
texture.inl Refactor headers 2018-08-05 15:22:49 +02:00
transform.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
transform.inl Refactor headers 2018-08-05 15:22:49 +02:00
transform2.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
transform2.inl fix: scalebias 2020-09-23 22:56:48 -03:00
type_aligned.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
type_aligned.inl Refactor headers 2018-08-05 15:22:49 +02:00
type_trait.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
type_trait.inl Added quaternion EXT extensions 2018-08-07 13:55:13 +02:00
vec_swizzle.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
vector_angle.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
vector_angle.inl Refactor headers 2018-08-05 15:22:49 +02:00
vector_query.hpp Build errors when defining GLM_ENABLE_EXPERIMENTAL #884 #883 2019-04-01 16:04:04 +02:00
vector_query.inl Refactor headers 2018-08-05 15:22:49 +02:00
wrap.hpp Added clamp, repeat, mirrorClamp and mirrorRepeat function to GLM_EXT_scalar_commond and GLM_EXT_vector_commond extensions with tests 2020-02-11 12:53:12 +01:00
wrap.inl Added clamp, repeat, mirrorClamp and mirrorRepeat function to GLM_EXT_scalar_commond and GLM_EXT_vector_commond extensions with tests 2020-02-11 12:53:12 +01:00