Interface IGpuMemoryPool<T>
- Namespace
- Orleans.GpuBridge.Abstractions.Memory
- Assembly
- Orleans.GpuBridge.Abstractions.dll
Memory pool for GPU allocations
public interface IGpuMemoryPool<T> where T : unmanaged
Type Parameters
T
Methods
GetStats()
Gets pool statistics
MemoryPoolStats GetStats()
Returns
Rent(int)
Rents memory from the pool
IGpuMemory<T> Rent(int minimumLength)
Parameters
minimumLengthint
Returns
- IGpuMemory<T>
Return(IGpuMemory<T>)
Returns memory to the pool
void Return(IGpuMemory<T> memory)
Parameters
memoryIGpuMemory<T>