Class BufferPool
public class BufferPool : IDisposable
- Inheritance
-
BufferPool
- 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
graphicsDevice
GraphicsDevicesize
inttype
BufferPoolAllocationTypebufferPoolAllocationResult
BufferPoolAllocationResult
CanAllocate(int)
public bool CanAllocate(int size)
Parameters
size
int
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
commandList
CommandList
New(GraphicsResourceAllocator, GraphicsDevice, int)
public static BufferPool New(GraphicsResourceAllocator allocator, GraphicsDevice graphicsDevice, int size)
Parameters
allocator
GraphicsResourceAllocatorgraphicsDevice
GraphicsDevicesize
int
Returns
Reset()
public void Reset()
Unmap()
public void Unmap()