Commit Graph

4596 Commits

Author SHA1 Message Date
Rafal Bielski
c2ad8b5e09 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-12-19 19:58:30 +01:00
Zulleyy3
ff32f1e3c7 Update readme.md to link to new API reference 2023-12-19 19:58:30 +01:00
Laurent Caumont
87341644c9 fix cmake version 2023-12-19 19:58:30 +01:00
Laurent Caumont
4e01e940de 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-12-19 19:58:30 +01:00
RRR784
c51c4b4ec9 changed GLM_FORCE_QUAT_DATA_WXYZ to GLM_FORCE_QUAT_DATA_XYZW
related to https://github.com/g-truc/glm/pull/1069#issuecomment-832934981
2023-12-19 19:58:30 +01:00
Woob
8a3d04d229 Fix SIMD quat operations. 2023-12-19 19:58:30 +01:00
Woob
7770dc37a6 Made GLM_FORCE_QUAT_DATA_XYZW be supported by most major functions 2023-12-19 19:58:30 +01:00
Stephen Xu
c7c2c3833f Remove *constexpr* from *compute_abs* on CUDA 2023-12-19 19:58:30 +01:00
Stephen Xu
64263d6c9a Use different qualifiers for default function and constructor
So it is more robust against user configuration to force constructor initialisation
2023-12-19 19:58:30 +01:00
Stephen Xu
0096690e83 Use different function qualifier for default-able functions 2023-12-19 19:58:30 +01:00
Stephen Xu
0d1a69786b Revert PR #1107 due to potential ill-formed NDR 2023-12-19 19:58:30 +01:00
tetrisplusplus
31f85aab6e Improved performace. 2023-12-19 19:58:30 +01:00
tetrisplusplus
477ba69343 Fixed isOrthogonal, return false for zero matrix 2023-12-19 19:58:30 +01:00
tetrisplusplus
aa4d729e48 Added test_isOrthogonal for zero matrix 2023-12-19 19:58:30 +01: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
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
Thomas Perl
4afe953bff gtx_matrix_decompose: Add glm::recompose() 2023-02-26 18:33:47 +01:00
Christophe
efec5db081
Merge pull request #1134 from la-canne-enchainee/test_round_fix
Fix round test #1134
2023-01-13 18:08:59 +01:00
Christophe
d58d06b1ef
Merge pull request #1132 from gottfriedleibniz/fix/exports
fix: declarations #1132
2023-01-13 18:05:50 +01:00
olga
97e09aa304 Fix round test
Depending on the developer environment, the output of round for o.5 or -0.5 may be different (according to the GLSL spec). So the test was too restrictive.
2023-01-13 14:08:46 +01:00
Gottfried Leibniz
36aa3e75b2 fix: declarations 2023-01-09 17:48:57 -04:00
Elie Michel
24fd816df3
Update make_light_release.yml 2023-01-09 00:29:46 +01:00
Elie Michel
783310c1aa
Update make_light_release.yml 2023-01-09 00:26:16 +01:00
Elie Michel
e83da44f00
Update make_light_release.yml 2023-01-09 00:24:56 +01:00
Elie Michel
b733265bc8
Update make_light_release.yml 2023-01-09 00:04:03 +01:00
Elie Michel
1f61d8a056
Create make_light_release.yml 2023-01-08 23:56:32 +01:00
Christophe
fc8f4bb442
Merge pull request #1122 from Thibaulltt/fix_glm_ext_matrix_common
Fix GLM_EXT_matrix_common : row to column-major #1122
2022-10-26 17:30:34 +02:00
Thibault de Villèle [UM]
1c18fca789 Fix GLM_EXT_matrix_common : row to column-major
The previous patch made the incorrect assumption matrices were row-major
instead of column-major (got the two mixed up in my head).

This fixes this problem.

Also, this extends the test files to cover all matrix sizes (not types,
that would be redundant).
2022-10-26 11:17:23 +02:00
Christophe
0a6d3334ea
Merge pull request #1086 from imgly/imgly/fix/vdivq_f32_undefinded_armv7
Fixed use of undeclared identifier 'vdivq_f32' while compile for ARMv7 #1086
2022-10-24 12:54:34 +02:00
Christophe
e250ffe36d
Merge pull request #1109 from EbiSadeghi/master
Documentation: spelling, grammar, and clarity #1109
2022-10-24 12:50:49 +02:00
Christophe
7b9d310dbd
Merge pull request #1116 from Thibaulltt/master
GLM_EXT_matrix_common : add glm::mat<> support to glm::abs() #1116
2022-10-24 12:33:54 +02:00
Christophe
af9725719e
Merge pull request #1112 from Goubermouche/master
Fixed a typo in io.hpp #1112
2022-10-24 12:30:09 +02:00
Christophe
03b7f75c75
Merge pull request #1120 from Tachi107/manual.md-fixes
docs(manual): some markdown fixes
2022-10-24 12:28:48 +02:00
Christophe
38b7a1a983
Merge pull request #1107 from stephen-hqxu/cuda-default-function
Force no default function when using CUDA #1107
2022-10-24 12:27:30 +02:00