Table of Contents

Class BufferPool

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll
public class BufferPool : IDisposable
Inheritance
BufferPool
Implements
Extension Methods

Fields

Data

public nint Data

Field Value

nint

Size

public int Size

Field Value

int

Methods

Allocate(GraphicsDevice, int, BufferPoolAllocationType, ref BufferPoolAllocationResult)

public void Allocate(GraphicsDevice graphicsDevice, int size, BufferPoolAllocationType type, ref BufferPoolAllocationResult bufferPoolAllocationResult)

Parameters

graphicsDevice GraphicsDevice
size int
type BufferPoolAllocationType
bufferPoolAllocationResult BufferPoolAllocationResult

CanAllocate(int)

public bool CanAllocate(int size)

Parameters

size int

Returns

bool

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 GraphicsResourceAllocator
graphicsDevice GraphicsDevice
size int

Returns

BufferPool

Reset()

public void Reset()

Unmap()

public void Unmap()