Commit Graph

212 Commits

Author SHA1 Message Date
Jérôme Leclercq 42c80143eb Try to fix unit tests 2022-02-18 19:57:41 +01:00
Jérôme Leclercq 402e16bd2b Shader: Handle type as expressions 2022-02-17 13:23:56 +01:00
Jérôme Leclercq b8e017aa25 Add utility tests 2022-02-10 14:12:44 +01:00
Jérôme Leclercq 979bf2cc80 UnitTests: Improve hash unit tests (add file test) 2022-02-10 11:56:35 +01:00
Jérôme Leclercq 97ee89afb7 Rework hashes (also fix Fletcher16 and CRC64) 2022-02-10 01:46:58 +01:00
Jérôme Leclercq 6c35b0be57 Minor fixes 2022-02-05 21:30:36 +01:00
Jérôme Leclercq 33dddf6d41 UnitTests: Try to fix leak 2022-02-05 16:24:05 +01:00
Jérôme Leclercq e6951d54a5 Shader: Switch type<subtype> to type[subtype] 2022-01-26 19:24:46 +01:00
Jérôme Leclercq 64efd81bf8 Shader: Handle matrix cast properly 2022-01-23 19:58:04 +01:00
Jérôme Leclercq 89e9e41357 Core/SparsePtr: Use template type for +/- and +=/-= 2022-01-23 13:27:39 +01:00
Jérôme Leclercq 3c308970a1 Minor fixes 2022-01-23 01:22:16 +01:00
Lynix 9f05a22db7 Build: Disable unit tests build (and requirements) by default 2022-01-18 06:25:33 +01:00
Jérôme Leclercq 22c99bfd1d XMake: Add options to disable tools/plugins and unit tests building 2022-01-18 06:15:51 +01:00
Lynix f30a1faeca Fix client unit tests 2022-01-11 17:32:16 +01:00
Jérôme Leclercq 756fd773a9 Shader: Add support for numerical fors 2022-01-06 20:38:55 +01:00
Jérôme Leclercq 2bdcc045cd Shader: Replace const for with [unroll] attribute 2022-01-03 20:21:09 +01:00
Jérôme Leclercq 4fe44339c5 Shader: Add support for for-each statements and improve arrays 2022-01-02 22:02:11 +01:00
Jérôme Leclercq 3a4e006106 UnitTests/Shader: Update scalar swizzle test 2021-12-28 20:09:26 +01:00
Jérôme Leclercq 101a3d70da Shader/AstOptimizer: Add swizzle optimization 2021-12-28 20:09:04 +01:00
Jérôme Leclercq 22651255df UnitTests/Shader: Add cond/const if tests 2021-12-28 13:36:11 +01:00
Jérôme Leclercq a8bb5291f2 Update Optimizations.cpp 2021-12-28 11:54:49 +01:00
Jérôme Leclercq 2f64e493de UnitTests/Shader: Add sanitization and optimizations unit tests 2021-12-28 11:49:53 +01:00
Jérôme Leclercq 47e2ec35e3 UnitTests/Shader: Improve GLSL handling (detect shader point type instead of assuming fragment) 2021-12-28 11:49:20 +01:00
Jérôme Leclercq a0f66d9e88 Shader/SPIRV: Fix multiple branch handling (by splitting) 2021-12-28 11:48:19 +01:00
Jérôme Leclercq e21b45946f Shader/SPIRV: Fix double termination of blocks when branching
Which could happen when using OpKill (discard) for example
2021-12-26 22:00:44 +01:00
Jérôme Leclercq b98fd65a01 Fix a lot of small bugs/warnings 2021-12-25 20:07:53 +01:00
Jérôme Leclercq b9642b0662 UnitTests: Add a lot of shader generation tests 2021-12-25 19:13:32 +01:00
Jérôme Leclercq f798901c23 UnitTests: Use glslang to validate GLSL shaders 2021-12-24 14:54:35 +01:00
Jérôme Leclercq 3e708cf5ed XMake: Use remove_files/remove_headerfiles 2021-12-24 11:06:44 +01:00
Jérôme Leclercq 1aa56b4db8 Tests: disable unity buildd 2021-12-23 18:26:00 +01:00
Jérôme Leclercq b53d2a0560 Rework shader module unit tests 2021-12-23 17:39:24 +01:00
Jérôme Leclercq e497faabaf Fix compilation 2021-12-21 14:45:53 +01:00
Jérôme Leclercq 04ee6f0fd1 Add support for xmake 2.5.9 (and unity build for unit tests) 2021-10-19 14:26:45 +02:00
Jérôme Leclercq 2f9e495739 Fix unit tests 2021-08-28 19:09:53 +02:00
Jérôme Leclercq 2b9d8becea Math: Rework Frustum class 2021-08-23 18:43:34 +02:00
Jérôme Leclercq 8db8533300 Fixes a lot of warnings and move math enums to enum classes 2021-08-19 20:27:20 +02:00
Jérôme Leclercq 9ab47edd11 Fix compilation 2021-07-08 12:27:18 +02:00
Jérôme Leclercq 5aa63831e8 Remove Nazara SDK 2021-07-07 22:56:50 +02:00
Jérôme Leclercq 1f6937ab1b Shader: Implement const if and const values 2021-07-07 22:38:24 +02:00
Jérôme Leclercq dfa46ebaa5 Fix shader generation unit tests 2021-06-16 16:50:00 +02:00
Jérôme Leclercq bd1f5214b8 Math: Replace M_PI defines with template constexpr constants 2021-06-05 16:35:15 +02:00
Jérôme Leclercq d72984380d Replace Catch header by a xmake package 2021-06-04 20:09:35 +02:00
Jérôme Leclercq 4b3b595a99 Minor fixes 2021-06-04 18:02:28 +02:00
Jérôme Leclercq 8fe11711a3 UnitTests: Rename .cpp (it was confusing the debugger) 2021-06-04 14:12:26 +02:00
Jérôme Leclercq 4d74cef034 Math: Remove NAZARA_MATH_ANGLE_RADIAN and functions using it 2021-06-01 17:37:40 +02:00
Jérôme Leclercq d0d65be35f Tests: Fix Shader/AccessMember
It turns out the Sanitizer AccessMember refactor also optimized the SPIRV output by merging the resulting AccessIndex
2021-06-01 17:00:55 +02:00
Jérôme Leclercq d5c27a756b Audio: Fix AudioFormat names (U16 -> I16) 2021-05-30 16:45:50 +02:00
Jérôme Leclercq 874fb3542e Convert all remaining enums to enum classes (!) 2021-05-25 10:40:07 +02:00
Jérôme Leclercq 8cdd0b51cb Upgrade Audio (part 2) 2021-05-25 10:40:07 +02:00
Jérôme Leclercq ac57b3fbf4 Shader/GlslWriter: Accepts mono-functions shader without specifying entry points 2021-05-25 10:40:07 +02:00