Gpu | |
public class GpuDynamicMemoryBlock<T> : GpuDeviceComponent, IGpuDynamicMemoryBlock where T : struct, new()
The GpuDynamicMemoryBlockT type exposes the following members.
| Name | Description | |
|---|---|---|
| DescriptorSets | Optional DescriptorSets that may be set by the used of this class to store the used DescriptorSets. | |
| GpuBuffers | GpuBuffers that are used to store the data (for example materials data). | |
| IsDataChanged | ||
| IsEmpty | ||
| IsFull | ||
| ItemsCapacity | ||
| MemoryBlock | Gets a generic DynamicMemoryBlock that represents memory block that can be used to allocate/free dynamic memory on GPU. |
| Name | Description | |
|---|---|---|
| AddNewGpuBuffer | ||
| Create | ||
| Dispose | (Overrides ComponentBaseDispose(Boolean)) | |
| FreeIndex | ||
| GetMemoryBlock | Returns IDynamicMemoryBlock that represents memory block that can be used to allocate/free dynamic memory on GPU. | |
| GetNextFreeIndex | ||
| MarkDataChanged | 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. | |
| Update | Update method updates the GpuBuffer in case the data has changed (in this case true is returned). |