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: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
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.
Public propertyUseDeviceLocalHostVisibleMemoryType When true, then DeviceLocal and HostVisible memory type is used (when available). Default value is true.
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