Table of Contents

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

MemoryPoolStats

Rent(int)

Rents memory from the pool

IGpuMemory<T> Rent(int minimumLength)

Parameters

minimumLength int

Returns

IGpuMemory<T>

Return(IGpuMemory<T>)

Returns memory to the pool

void Return(IGpuMemory<T> memory)

Parameters

memory IGpuMemory<T>