Click or drag to resize
Ab4d.SharpEngine logo

GpuDynamicMemoryBlockT Class

Inheritance Hierarchy
SystemObject
  Ab4d.SharpEngine.CoreComponentBase
    Ab4d.SharpEngine.CoreGpuDeviceComponent
      Ab4d.SharpEngine.UtilitiesGpuDynamicMemoryBlockT

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax
C#
public class GpuDynamicMemoryBlock<T> : GpuDeviceComponent, 
	IGpuDynamicMemoryBlock
where T : struct, new()

Type Parameters

T

The GpuDynamicMemoryBlockT type exposes the following members.

Properties
 NameDescription
Public propertyDescriptorSets Optional DescriptorSets that may be set by the used of this class to store the used DescriptorSets.
Public propertyGpuBuffers GpuBuffers that are used to store the data (for example materials data).
Public propertyIsDataChanged 
Public propertyIsEmpty 
Public propertyIsFull 
Public propertyItemsCapacity 
Public propertyMemoryBlock Gets a generic DynamicMemoryBlock that represents memory block that can be used to allocate/free dynamic memory on GPU.
Top
Methods
 NameDescription
Public methodAddNewGpuBuffer 
Public methodStatic memberCreate 
Protected methodDispose
(Overrides ComponentBaseDispose(Boolean))
Public methodFreeIndex 
Public methodGetMemoryBlock Returns IDynamicMemoryBlock that represents memory block that can be used to allocate/free dynamic memory on GPU.
Public methodGetNextFreeIndex 
Public methodMarkDataChanged MarkDataChanged need to be called after the Data is changed. This will copy the data to the GpuBuffer on next call to Update(Int32) method.
Public methodUpdate Update method updates the GpuBuffer in case the data has changed (in this case true is returned).
Top
See Also