diff options
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** |
