Expand description
GPU memory management abstractions.
Provides CPU-side mock implementations of GPU buffer types, a pool allocator, transfer queue, and memory statistics — all without requiring an actual GPU.
Structs§
- Download
Result - Pending download result.
- GpuBuffer
- A CPU-side mock for a typed GPU buffer backed by a
Vecu8`. - GpuBuffer
Handle - An opaque handle to an allocated GPU buffer region.
- GpuBuffer
Pool - A pool allocator that sub-allocates from a large backing buffer.
- GpuMemory
Stats - Snapshot of GPU memory usage.
- Index
Buffer - An index buffer supporting u16 or u32 indices.
- Storage
Buffer - A large read-write GPU storage buffer.
- Texture
Buffer - A 2-D texture buffer.
- Transfer
Op - A pending transfer operation.
- Transfer
Queue - A simple upload / download transfer queue for a GPU pool.
- Uniform
Buffer - A structured uniform buffer holding named
f64fields. - Vertex
Buffer - An interleaved vertex buffer (pos + normal + UV).
- Vertex
Layout - Vertex layout descriptor.
Enums§
- GpuBuffer
Type - Identifies the logical type of a GPU buffer.
- Index
Topology - Triangle or line primitive topology.
- Texture
Format - Pixel format for a texture buffer.