Changed how Allocator work to be more Zig like

Now GpuArena doesn't do everything.

- Created GpuDeviceAllocator that allocate to the device
- GpuArena become GpuArenaAllocator and use a child_allocator like
std.heap.ArenaAllocator
This commit is contained in:
adrien
2026-05-20 13:32:37 +02:00
parent a06b040a29
commit 7d425e4061
6 changed files with 101 additions and 42 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
pub const GpuAllocator = @import("GpuAllocator.zig");
pub const GpuArena = @import("GpuArena.zig");
pub const GpuArenaAllocator = @import("GpuArenaAllocator.zig");
pub const GpuBuffer = @import("GpuBuffer.zig");
pub const GpuDevice = @import("GpuDevice.zig");
pub const GpuCompute = @import("GpuCompute.zig");