Commit graph

1923 commits

Author SHA1 Message Date
c0a60cbdc8 Remove unused boost/stacktrace include 2026-06-30 15:27:02 +03:00
a9094975be Use util::mutexed in audio::channel if atomic_ptr<shared_ptr> is not supported 2026-06-30 14:40:47 +03:00
99978c3241 Add util::mutexed<T> 2026-06-30 14:40:08 +03:00
5a6975b3f4 Fix subobject initialization in math/detail/array_2d.hpp 2026-06-30 14:39:12 +03:00
0cc148f653 Fix missing include in math/detail/array.hpp 2026-06-30 14:38:24 +03:00
e5d356e1fc Remove Boost.Math from COMPONENTS when finding boost in config mode 2026-06-30 13:52:38 +03:00
500646bfe9 Fix util::reversed() to support both begin()/end() methods and free functions 2026-06-30 13:13:54 +03:00
aeb0f4a799 Make sure math::vector,point are trivially default constructible 2026-06-30 13:13:05 +03:00
68aedbf2fa Add hash table formatters 2026-06-07 18:48:10 +03:00
03af0a7099 Fix character types in math primitive formatters 2026-06-07 18:48:01 +03:00
3a22c74ce5 Add std::format support for matrices 2026-06-05 23:00:28 +03:00
892662307f Fix some math primitive formatters 2026-06-05 23:00:19 +03:00
0731dd9216 Add wgpu::memory_usage for textures and texture formats 2026-05-11 13:47:41 +03:00
074cbb18ba Mark appropriate methods of wgpu wrappers as const 2026-05-11 13:47:21 +03:00
b3cb60371e Tweak vector & quaternion slerp 2026-04-14 21:04:56 +03:00
005008b720 Find Boost in config mode 2026-04-06 23:04:01 +03:00
d1a3bf15d4 Fix util::ndarray::copy() in case of an empty array 2026-02-20 20:19:32 +03:00
c3f48fdbc0 Unify render pass & compute pass timestamp writes in wgpu 2026-02-11 17:55:48 +03:00
2f781525d7 Implement math::concat for arbitrary types, not just vectors 2026-02-03 23:45:00 +03:00
339de6b218 Handle negative values as zeroes in statistics log buckets 2026-02-03 23:44:46 +03:00
0e813c3307 Fix compilation on gcc-15: int template arguments can't be implicitly casted to size_t 2026-01-25 14:21:13 +03:00
2549d248a5 Improve matrix norms computation & add linf_norm 2025-12-04 18:11:32 +03:00
8832700e25 Optimize math::length(vector) to prevent allocations for runtime-sized vectors 2025-12-04 18:11:11 +03:00
a5acb9534b Big math::vector,point,matrix refactor: fully support dynamic (runtime) size in basic operations 2025-12-04 17:22:32 +03:00
a8e08bf6d3 Remove dynamic-sized storage from math::box 2025-12-04 17:21:57 +03:00
4b314d78c4 Make math::matrix::values() return util::span 2025-12-03 15:24:48 +03:00
62f2adcb82 Update to wgpu-native v27.0.2.0 2025-12-02 17:40:51 +03:00
48d756bdd5 Reimplement journal lib without sqlite & remove sqlite dependency 2025-12-02 13:43:30 +03:00
7c398e28ff Fix hash_table::insert (lmao) 2025-11-13 12:42:33 +03:00
774620c673 Change math::matrix storage type in preparation for dynamic-sized matrices 2025-10-25 16:12:38 +03:00
17d857ecf2 Use util::array as the storage for math types with dynamic size 2025-10-25 15:20:59 +03:00
e40467a8d1 Add util::array - a dynamic array without auto-expansion 2025-10-25 15:20:42 +03:00
b99a4da18f Rename util::array -> util::ndarray 2025-10-25 14:51:30 +03:00
e23455356d Support float32 output in SDL2 audio backend (with int16 fallback) 2025-10-23 18:40:30 +03:00
64ffe27c2a Fix abs(fixed_point), lmao 2025-10-19 02:40:35 +03:00
615ee51229 Support async::executor::clear() 2025-10-18 17:31:34 +03:00
78e9731d8d Fix math library std::formatters & make them use format rules derived from base scalar type 2025-10-18 15:27:39 +03:00
b1ea7bc763 Add gfx::luminance(color) 2025-10-11 00:39:57 +03:00
424bf5f533 Add ecs::container::detach_finally/destroy_finally helpers 2025-10-10 16:01:17 +03:00
4a4f680d0a Add debug assertions for when an entity's archetype is changed while it is being created/destroyed 2025-10-10 16:01:00 +03:00
8d25721d35 Don't call most SDL_GL_xxx functions when using WebGPU API 2025-09-16 20:45:12 +03:00
7c5062e081 Add hash_table::reserve 2025-09-16 20:44:42 +03:00
7300679f56 Properly initialize math::interval<util::fixed_point> 2025-09-14 17:22:10 +03:00
8a739bf637 Fixed-point improvements:
* Mark everything constexpr
* Use unsigned type for multiplication to prevent UB on overflow
* Add fp -> fp conversions
* Add floor & ceil functions
2025-09-14 00:03:07 +03:00
7beba986ae Add math::cast(ray) 2025-09-14 00:02:28 +03:00
a42d025ffb libs/math fixes in case scalar type isn't implicitly constructible from int 2025-09-14 00:02:19 +03:00
be372ee007 Switch to a simpler & faster uniform real generation algorithm 2025-09-07 14:01:18 +03:00
754b279b1a Optimize math::smootherstep somewhat 2025-09-07 14:00:45 +03:00
08f62bdaf7 Rewrite math::angle_difference without trigonometry 2025-09-07 14:00:25 +03:00
3b88908534 Log max execution time in profiler dump 2025-09-07 13:59:57 +03:00