Class BufferPool
public class BufferPool : IDisposable
- Inheritance
-
objectBufferPool
- Implements
- Extension Methods
Fields
Data
public nint Data
Field Value
Size
public int Size
Field Value
Methods
Allocate(GraphicsDevice, int, BufferPoolAllocationType, ref BufferPoolAllocationResult)
public void Allocate(GraphicsDevice graphicsDevice, int size, BufferPoolAllocationType type, ref BufferPoolAllocationResult bufferPoolAllocationResult)
Parameters
graphicsDeviceGraphicsDevicesizeinttypeBufferPoolAllocationTypebufferPoolAllocationResultBufferPoolAllocationResult
CanAllocate(int)
public bool CanAllocate(int size)
Parameters
sizeint
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Map(CommandList)
public void Map(CommandList commandList)
Parameters
commandListCommandList
New(GraphicsResourceAllocator, GraphicsDevice, int)
public static BufferPool New(GraphicsResourceAllocator allocator, GraphicsDevice graphicsDevice, int size)
Parameters
allocatorGraphicsResourceAllocatorgraphicsDeviceGraphicsDevicesizeint
Returns
Reset()
public void Reset()
Unmap()
public void Unmap()