First pass at nodes

This commit is contained in:
2026-07-27 06:45:39 +01:00
parent 4bbd7dfe01
commit 618f09689d
25 changed files with 2214 additions and 646 deletions
+6
View File
@@ -94,6 +94,12 @@ void prNodeDestroy(PrNode *n, PrAllocator *alloc);
Use wapp allocators (`WpAllocator`, arena-based). Stack-allocate where
possible; pass allocators explicitly.
**Never use libc for memory or file I/O.** wapp always takes precedence:
- `wpMemAllocatorAlloc` / `wpMemAllocatorFree` instead of `malloc` / `free`
- `wpFileOpen` / `wpFileRead` / `wpFileClose` instead of `fopen` / `fread` / `fclose`
For one-shot loads (e.g. SPIR-V at init), use `&_G_RHI_CONTEXT.allocator`.
```c
PrGraph *prGraphCreate(PrAllocator *alloc);
void prGraphDestroy(PrGraph *g, PrAllocator *alloc);