Class CpuMemoryPool<T>
CPU-based memory pool for fallback operations
public sealed class CpuMemoryPool<T> : IGpuMemoryPool<T> where T : unmanaged
Type Parameters
T
- Inheritance
-
CpuMemoryPool<T>
- Implements
- Inherited Members
Constructors
CpuMemoryPool()
Initializes a new instance of the CpuMemoryPool<T> class.
public CpuMemoryPool()
Methods
GetStats()
Gets pool statistics
public MemoryPoolStats GetStats()
Returns
Rent(int)
Rents memory from the pool
public IGpuMemory<T> Rent(int minimumLength)
Parameters
minimumLengthint
Returns
- IGpuMemory<T>
Return(IGpuMemory<T>)
Returns memory to the pool
public void Return(IGpuMemory<T> memory)
Parameters
memoryIGpuMemory<T>