Commit Graph

18 Commits

Author SHA1 Message Date
Peterino2 fd37a11da8 Update mock testing to use full SDL_gpu.h with proper header includes
Key changes:
- Updated regenerate-test-mocks to parse SDL_gpu.h (169 declarations)
- Modified mock_codegen.zig to include SDL headers instead of manual typedefs
- Added SDL include path to mock library compilation
- Expanded mock_test.zig with comprehensive tests for SDL_gpu types
- All 7 tests passing with 94 mock functions linked successfully

Results:
- Generated 1,229 lines of Zig bindings from 169 declarations
- Generated 577 lines of C mock code
- Compiled to 71KB static library with all 94 functions exported
- Tests verify: opaque types, enums, structs, packed structs, and functions
- Demonstrates parser works with large, complex headers

Stats: 13 opaque types, 24 enums, 35 structs, 3 flags, 94 functions
2026-01-22 01:32:58 -08:00
Peterino2 5dae1139b7 Add mock compilation testing to SDL3 build system
- Added regenerate-test-mocks step to generate bindings and C mocks
- Added check-mocks step to compile generated code without running tests
- Added test-mocks step to run full test suite (4 tests)
- Implemented parser/test/mock_test.zig with comprehensive tests
- Verified C mocks compile to static library with correct symbols
- All tests pass: opaque types, enums, and function calls work correctly

Build commands:
  zig build regenerate-test-mocks - Generate bindings and mocks
  zig build check-mocks           - Compile check only
  zig build test-mocks            - Run full test suite

Tests verify:
- Generated Zig code is syntactically valid
- C mocks compile and link correctly
- Functions are callable from Zig
- Type safety is preserved across C/Zig boundary
2026-01-22 01:27:36 -08:00
Peterino2 291adf94d3 parser work continued 2026-01-22 01:18:04 -08:00
peterino2 cc00fb076e switched all builds to bh.declareOptions 2025-11-28 20:14:56 -08:00
peterino2 2e4f7d98e4 crated zuck game content and creating hello-window 2025-10-26 20:02:36 -07:00
peterino2 43a88376ee libraries have been updated to 0.15 2025-10-13 22:15:30 -07:00
peterino2 de6ccd211b objloader, ozz, sdl3 all updated 2025-10-13 20:57:04 -07:00
peterino2 9d8b2bea9a updated builds to use spvreflect2 and updated the build code 2025-08-18 23:35:35 -07:00
peterino2 67883be7fb module forwarding optionals and apigen 2025-06-08 18:06:19 -07:00
peterino2 4d57518bc0 updated build scripts 2025-06-08 11:25:44 -07:00
peterino2 a7505acf8b i think we cracked the code on getting some linux builds working 2025-06-07 15:20:52 -07:00
peterino2 6f2396c814 upgrading to sdl 3.16 2025-06-07 14:05:12 -07:00
Peter Li 74228b388d so much work on hot reloading done 2025-05-19 21:35:04 -07:00
Peter Li ff101925ff saving before stash 2025-04-18 19:54:59 -07:00
Peter Li 341e69b32e The shader compilation story kicks ass now 2025-04-13 18:13:45 -07:00
Peter Li 806c7942e8 saving 2025-04-13 17:41:16 -07:00
Peter Li b500809d6f updating p2 to 0.14 2025-04-11 14:35:42 -07:00
Peter Li 641f38f295 Backlog initial-comit SDL gpu examples cooking shaders properly 2025-04-07 19:51:46 -07:00