Skip to main content

Module memory

Module memory 

Source
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§

DownloadResult
Pending download result.
GpuBuffer
A CPU-side mock for a typed GPU buffer backed by a Vecu8`.
GpuBufferHandle
An opaque handle to an allocated GPU buffer region.
GpuBufferPool
A pool allocator that sub-allocates from a large backing buffer.
GpuMemoryStats
Snapshot of GPU memory usage.
IndexBuffer
An index buffer supporting u16 or u32 indices.
StorageBuffer
A large read-write GPU storage buffer.
TextureBuffer
A 2-D texture buffer.
TransferOp
A pending transfer operation.
TransferQueue
A simple upload / download transfer queue for a GPU pool.
UniformBuffer
A structured uniform buffer holding named f64 fields.
VertexBuffer
An interleaved vertex buffer (pos + normal + UV).
VertexLayout
Vertex layout descriptor.

Enums§

GpuBufferType
Identifies the logical type of a GPU buffer.
IndexTopology
Triangle or line primitive topology.
TextureFormat
Pixel format for a texture buffer.