Gpu | |
public class GpuDynamicMemoryBlockPool<T> : ComponentBase where T : struct, new()
The GpuDynamicMemoryBlockPoolT type exposes the following members.
| Name | Description | |
|---|---|---|
| MaxBlockSize | Gets the maximum block size. This number is rounded to the smallest exponent of 2. Default value is 65536 (64 Kb). | |
| MemoryBlocksCount | Gets the number or memory blocks that are currently allocated in this pool. | |
| MinBlockSize | Gets the minimum block size. This number is rounded to the smallest exponent of 2. Default value is 4096 (4 Kb). | |
| PreventZeroBlockIndex | When false (by default) then first block index starts with 0. If true then the first block index starts with 1 (this is used for StandardEffect where material index that is sent to shader can be negative to invert normal; because of this material index must not be zero). This property must be set before calling GetNextFreeIndex. | |
| UseDeviceLocalHostVisibleMemoryType | When true, then DeviceLocal and HostVisible memory type is used (when available). Default value is true. |
| Name | Description | |
|---|---|---|
| AddMemoryBlocksInfo | ||
| AddNewMemoryBlock | ||
| Cleanup | Cleanup method checks all memory blocks. Memory block is freed when it is empty and freeEmptyMemoryBlocks is true or when it empty for at least EngineRuntimeOptions.FramesCountToReleaseEmptyMemoryBlock frames. | |
| Create | ||
| Dispose | (Overrides ComponentBaseDispose(Boolean)) | |
| FreeMaterialMemoryBlocks | FreeMaterialMemoryBlocks wait after the current frame is rendered and then frees the used memory block. It also sets the material's MaterialBlockIndex and MaterialIndex to -1. | |
| GetFreeMemoryBlockIndex | ||
| GetMemoryBlock(Int32) | ||
| GetMemoryBlock(Int32, Int32) | ||
| GetMemoryBlockOrDefault(Int32) | ||
| GetMemoryBlockOrDefault(Int32, Int32) | ||
| GetNextFreeIndex | ||
| IncreaseSwapChainImagesCount | ||
| UpdateDataBlocks |
| Name | Description | |
|---|---|---|
| CreateDescriptorSetsAction |