Commit Graph

4664 Commits

Author SHA1 Message Date
Christophe
2171a5b818 Fix intersectRayTriangle from GLM_GTX_intersect #1158 2023-12-21 00:47:13 +01:00
Christophe
1682a8c360 Fix doc typo 2023-12-20 23:53:35 +01:00
Christophe
5c008438db doc: Updated readme 2023-12-20 23:51:25 +01:00
Christophe
8a700ad040 More C.I. tests 2023-12-20 23:14:24 +01:00
Christophe
641bb363a7 gni 2023-12-20 22:33:20 +01:00
Christophe
c568980cf5 Revert broken vec4 SIMD 2023-12-20 22:33:20 +01:00
Christophe
edecbf1c59 Revert "Add support for non aligned SIMD for vec4"
This reverts commit 4e01e940de.
2023-12-20 22:33:20 +01:00
Christophe
2d38c41161 Fixes for tests build 2023-12-20 22:33:20 +01:00
Christophe
b90333c124 C.I. Add GitHub Actions 2023-12-20 22:33:20 +01:00
Rafal Bielski
586a402397 Remove the SYCL hacks
This reverts PR #914 which introduced a hacky way to replace
all std namespace maths function calls with sycl namespace ones.

Presumably the original intention was to use GLM functions in SYCL
device code (e.g. on GPUs) and force it to use the maths implementations
optimised for the target device. However, this has been very limited
in scope since the start because GLM relies heavily on function pointers
which are illegal to use inside SYCL device code.

The hacky solution shadowing std namespace with glm::std is problematic
in many ways. One was that it required re-introducing all std symbols used
across GLM codebase back to glm::std. The list of these symbols is difficult
to maintain over time without extensive CI testing and unsurprisingly it got
broken. Any code just including (some of) GLM headers now no longer compiles
with SYCL compilers even if GLM is only used on the host side (CPU code).

Remove this hack to allow SYCL programs using GLM on the host side to compile.

The original hack was tested against the ComputeCpp compiler which is now
phased out in favour of Intel's DPC++. Remove also the mention of ComputeCpp
from README. The statement about "any C++11 compiler" still covers the host
code compilation with DPC++.
2023-11-09 11:37:13 +01:00
Zulleyy3
e623a9cfee Update readme.md to link to new API reference 2023-11-09 11:35:36 +01:00
Christophe
b85861aa09
Merge pull request #1162 from laurentcau/master
Add support for non aligned SIMD for vec4
2023-11-09 11:33:32 +01:00
Laurent Caumont
c2c1d15592 fix cmake version 2023-11-08 15:54:46 +01:00
Laurent Caumont
1b0f61e285 Add support for non aligned SIMD for vec4
It is used as default configuration for Visual Studio 64 bits compilation (needs Language Extension).
code changes:
- add new qualifiers:
  unaligned_simd_highp
  unaligned_simd_mediump
  unaligned_simd_lowp
- add use_simd and replace is_aligned
(code for ARM NEON is added but not tested)
2023-11-08 09:30:26 +01:00
YaaZ
607177a396 Fix tabs. 2023-09-22 20:45:09 +02:00
YaaZ
c449b34416 Workaround for GLM_GTX_hash on MSVC. 2023-09-22 20:43:02 +02:00
Nikita Gubarkov
13148ecb52 Add support for C++20 modules. 2023-09-10 02:36:32 +02:00
Christophe
47585fde0c
Merge pull request #1136 from RRR784/patch-1
changed GLM_FORCE_QUAT_DATA_WXYZ to GLM_FORCE_QUAT_DATA_XYZW #1136
2023-08-18 15:15:04 +02:00
Christophe
d46ce89c74
Merge pull request #1148 from Vadmeme/master
Made GLM_FORCE_QUAT_DATA_XYZW be supported by most major functions #1148
2023-08-18 15:13:52 +02:00
Christophe
65c16d5da1
Merge pull request #1146 from stephen-hqxu/cuda-constexpr-abs
Fix: CUDA compiler error on constexpr abs function #1146
2023-08-18 15:09:10 +02:00
Christophe
ae668c4e7f
Merge pull request #1144 from stephen-hqxu/cuda-default-function
Revert and fix: Follow-up improvement for #1107 #1144
2023-08-18 15:08:02 +02:00
Christophe
db0f79de12
Merge pull request #1137 from tetrisplusplus/fix_glm_gtx_matrix_query_isOrthogonal
fix: isOrthogonal for a zero matrix #1137
2023-08-18 15:04:55 +02:00
Christophe
2c74560914
Merge pull request #1130 from eliemichel/master
Automatically add lightweight archives to releases #1130
2023-08-18 15:00:34 +02:00
Christophe
99fe1c8f7d
Merge pull request #1142 from thp/recompose
gtx_matrix_decompose: Add glm::recompose() #1142
2023-08-18 14:55:41 +02:00
Christophe
13b40e378a
Merge pull request #1147 from marksheppard/fix
Fix Clang 15 test build errors #1147
2023-08-18 14:52:55 +02:00
Christophe
aab59fbd7a
Merge pull request #1152 from aiden-knight/manual-fix
Fixed include file for perspective function in manual #1152
2023-08-18 14:50:34 +02:00
Christophe
684822982b
Merge pull request #1150 from fsmoke/gcc-warnings-fix
gcc x64 build warning fix around type casting size_t to int #1150
2023-08-18 14:49:45 +02:00
Christophe
b5776a91ae
Merge pull request #1154 from tomix1024/fix-atan2-declaration
Fix atan2(y,x) #1154
2023-08-18 14:48:57 +02:00
Christophe
c9f9337c32
Merge pull request #1155 from danblae/master
Update cmake version to prevent deprecation #1155
2023-08-18 14:47:22 +02:00
Christophe
b3a6570096
Merge pull request #1118 from rleigh-codelibre/float-sig-consistency
Make vec4, mat4x3 and mat4x4 binary operators and contructors for scalars consistent with other types #1118
2023-08-18 14:46:24 +02:00
Daniel Blaensdorf
8b94f970d9 Update cmake version to prevent deprecation 2023-07-24 08:31:43 +02:00
Tom Kneiphof
21db8fbdcb Fix atan2(y,x) 2023-07-10 12:28:42 +02:00
Aiden Knight
2f014270b6 Fixed include file for perspective function in manual 2023-06-10 17:21:58 +01:00
Christophe
5c46b9c070
Merge pull request #1149 from leokolln/patch-1
Fix docs, incorrect and inconsistent handiness descriptions #1149
2023-06-08 17:08:47 +02:00
Christophe
1bd1d627be
Merge pull request #1151 from rgergely/reorder_static_cast
Apply `static_cast` before calling `detail::mask` in `bitfieldInsert` #1151
2023-06-08 17:07:41 +02:00
Gergely Racz
6486113379 apply static_cast before calling mask in bitfieldInsert 2023-05-12 11:09:41 +02:00
kostromin
d4717fb57e gcc x64 build warning fix around type casting size_t to int 2023-04-21 10:49:22 +03:00
Léo Willian Kölln
738b4375c3
Fix docs, inconsistent spelling of handiness 2023-04-18 01:14:18 -03:00
Léo Willian Kölln
cbc5229400
Fix docs, left and right handness were swapped 2023-04-18 01:03:24 -03:00
Woob
9398c5843f Fix SIMD quat operations. 2023-04-02 12:55:40 -07:00
Woob
c6606998a5 Made GLM_FORCE_QUAT_DATA_XYZW be supported by most major functions 2023-04-01 14:50:37 -07:00
Mark Sheppard
3cb568cd37 Fix Clang 15 test build errors
Fixes for compiler errors when building the tests using Clang 15,
including:

    * Use explicit cast to silence Wimplicit-int-float-conversion
      warning for conversion of spin count in implementation of
      glm::slerp.
    * Use GLM_FORCE_MESSAGES instead of removed GLM_MESSAGES for
      messages in glm/gtx/hash.hpp, avoiding Wundef warning.
    * Encode en dash in URL for Gram-Schmit Process wikipedia page and
      replace similar en dashes in comments with regular dashes, to
      avoid Winvalid-utf8 warnings in glm/gtx/matrix_factorisation.inl.
    * Replace degree sign symbol with text "degrees" to avoid
      Winvalid-utf8 warnings in test/gtc/gtc_quaternion.cpp.
    * When using Clang, build tests with -Wno-float-equal to silence
      Wfloat-equal warning in implementation of glm::vec<L,T,Q>::equal.
    * For performance tests in test/gtx/gtx_fast_trigonometry.cpp, add
      statement explicitly casting result to void, to silence
      Wunused-but-set-variable warnings.
    * Add newline at end of test/gtx/gtx_hash.cpp to silence
      Wnewline-eof warning.
    * Rename namespace _1aga to agarose in test/gtx/gtx_pca.cpp to
      avoid Wreserved-identifier warning.
2023-03-31 17:39:53 +01:00
Stephen Xu
f8a9e5043f
Remove *constexpr* from *compute_abs* on CUDA 2023-03-30 19:23:00 +01:00
Stephen Xu
91c9409959
Use different qualifiers for default function and constructor
So it is more robust against user configuration to force constructor initialisation
2023-03-21 19:08:25 +00:00
Stephen Xu
140e7cf1b2
Use different function qualifier for default-able functions 2023-03-21 16:29:36 +00:00
Stephen Xu
7e80d9582e
Revert PR #1107 due to potential ill-formed NDR 2023-03-21 15:52:57 +00:00
Thomas Perl
4afe953bff gtx_matrix_decompose: Add glm::recompose() 2023-02-26 18:33:47 +01:00
tetrisplusplus
e48b2a72c8 Improved performace. 2023-01-23 21:41:27 +09:00
tetrisplusplus
96b1c72bfc Fixed isOrthogonal, return false for zero matrix 2023-01-23 21:27:02 +09:00
tetrisplusplus
2af53d5981 Added test_isOrthogonal for zero matrix 2023-01-23 21:05:35 +09:00