Click or drag to resize
Ab4d.SharpEngine logo

GpuDynamicMemoryBlockPoolT Class

Inheritance Hierarchy
SystemObject
  Ab4d.SharpEngine.CoreComponentBase
    Ab4d.SharpEngine.UtilitiesGpuDynamicMemoryBlockPoolT

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 1.0.8740+deb2991acfe86a95cca780cd4f82bcae2805c1a5
Syntax
C#
public class GpuDynamicMemoryBlockPool<T> : ComponentBase
where T : struct, new()

Type Parameters

T

The GpuDynamicMemoryBlockPoolT type exposes the following members.

Properties
 NameDescription
Public propertyMaxBlockSize Gets the maximum block size. This number is rounded to the smallest exponent of 2. Default value is 65536 (64 Kb).
Public propertyMinBlockSize Gets the minimum block size. This number is rounded to the smallest exponent of 2. Default value is 4096 (4 Kb).
Public propertyPreventZeroBlockIndex 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.
Top
Methods
 NameDescription
Public methodAddMemoryBlocksInfo 
Public methodAddNewMemoryBlock 
Public methodCleanup 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.
Public methodStatic memberCreate 
Protected methodDispose
(Overrides ComponentBaseDispose(Boolean))
Public methodGetFreeMemoryBlockIndex 
Public methodGetMemoryBlock 
Public methodGetMemoryBlockOrDefault 
Public methodGetNextFreeIndex 
Public methodIncreaseSwapChainImagesCount 
Public methodUpdateDataBlocks 
Top
Fields
See Also