Click or drag to resize
Ab4d.SharpEngine logo

GpuDynamicMemoryBlockPoolT Class

[Missing <summary> documentation for "T:Ab4d.SharpEngine.Utilities.GpuDynamicMemoryBlockPool`1"]

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

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

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "T:Ab4d.SharpEngine.Utilities.GpuDynamicMemoryBlockPool`1"]

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 propertyMemoryBlocksCount Gets the number or memory blocks that are currently allocated in this pool.
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 methodFreeMaterialMemoryBlocks 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.
Public methodGetFreeMemoryBlockIndex 
Public methodGetMemoryBlock(Int32) 
Public methodGetMemoryBlock(Int32, Int32) 
Public methodGetMemoryBlockOrDefault(Int32) 
Public methodGetMemoryBlockOrDefault(Int32, Int32) 
Public methodGetNextFreeIndex 
Public methodIncreaseSwapChainImagesCount 
Public methodUpdateDataBlocks 
Top
Fields
Remarks

[Missing <remarks> documentation for "T:Ab4d.SharpEngine.Utilities.GpuDynamicMemoryBlockPool`1"]

See Also