diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-02 16:12:09 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-02 16:12:09 +0100 |
| commit | 47b6253049b54186663b4205d3441f88656dc22e (patch) | |
| tree | bd743c635e2f3abb712f734b2f55b3f067499bdc /TODO.md | |
| parent | 06670897f15695c5bd33221841ce057a1778ee24 (diff) | |
flesh out extra details in the MD files
Diffstat (limited to 'TODO.md')
| -rw-r--r-- | TODO.md | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -25,6 +25,23 @@ This file tracks the next set of immediate, actionable tasks for the project. == etc. - [ ] the inclusion of gpu.h (either "gpu.h" or <webgpu/gpu.h>) seems to be a recurring compilation and portability issue. Can we have a single inclusion of gpu.h in some platform header instead of scattered inclusion in .cc files? This would reduce the single-point-of-compilation failures during compilation and portability checks. +- ** Task #?: platform-specific code hygiene + There's several platform-specific code scattered over several source files (.cc and .h) + For instance: +```cpp +#if defined(DEMO_CROSS_COMPILE_WIN32) +#include <webgpu/webgpu.h> +#else +#include <webgpu.h> +#endif /* defined(DEMO_CROSS_COMPILE_WIN32) */ +``` + This sort of code should be gathered at once single place (platform.h?) once for all. + - [ ] => Make all cross-compile and platform-specific conditional code sit in one single header file. + +- ** Task #?: platform_init() should return a PlatformState directly instead of taking a PlatformState& parameter to write into + - [ ] maybe incorporate the platform time (platform_get_time()) into the PlatformState directly during platform_poll() call? + - [ ] same with aspect_ratio (platform_get_aspect_ratio()) unless it's not an invariant and the function needs to be called each time + ## Future Goals - **Task #5: Implement Spectrogram Editor** |
