Commit a21ab81
amalxloop
Unify backend dispatch, add thread safety, depth testing, and API docs
- Add missing Metal dispatch for begin/end frame, destroy_texture,
shader/pipeline lifecycle, and resize in sc_gfx.h
- Wire D3D12 and WebGPU stubs into sc_gfx.h dispatch for all 14
backend-routed functions with CMake backend options
- Add sc_metal_resize implementation, sc_d3d12_resize/sc_wgpu_resize stubs
- Implement depth/stencil pipeline state, depth buffer, depth testing
and depth write in software rasterizer
- Add sc_gfx_lock/unlock with platform mutex (POSIX/Windows/WASM)
and thread_safe option in SCGfxDesc
- Add Doxygen API docs on all 19 public functions
- Add depth, thread-safety, and resize test cases (26 total)
- Update Python bindings for resize, lock, unlock
- Add Vulkan pipeline cache with desc hashing
- Update sc_kernel.c unity build for D3D12/WGPU backends1 parent 03e54ea commit a21ab81
9 files changed
Lines changed: 1402 additions & 72 deletions
File tree
- backends
- bindings/python
- include
- src
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
55 | 70 | | |
56 | 71 | | |
57 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
82 | 87 | | |
83 | 88 | | |
0 commit comments