Gpu | |
The GpuBuffer type exposes the following members.
| Name | Description | |
|---|---|---|
| AllocatedMemorySize | Gets the size of the allocated memory in bytes. This value can be bigger then the BufferSize. | |
| Buffer | Gets the Vulkan Buffer | |
| BufferMemory | Gets the VulkanMemoryInfo that represents the memory location of the buffer | |
| BufferSize | Gets the size of the buffer in bytes. This represents the amount of memory required to store the ItemsCount * sizeof(ItemType). This value can be smaller than the size of actually allocated memory (AllocatedMemorySize). When using vkCmdCopyBuffer, we need to specify this value and not AllocatedMemorySize. | |
| IsDataWritePostponed | True when some data is not yet written to this GpuBuffer because the data will be copied in the background thread or in the GpuStagingBuffer to be executed in a batch. | |
| IsHostVisible | True if buffer can be accessed from the CPU (MemoryPropertyFlags have HostVisible flag). | |
| IsMapped | True if buffer is currently mapped (GetMappedMemoryPtr or GetMappedMemorySpan methods were called). | |
| IsNonCoherentMemory | True if buffer is using non-coherent memory that needs to be manually invalidated or flashed (MemoryPropertyFlags has HostVisible flag but not HostCoherent flag). | |
| IsPersistentlyMapped | True if buffer is persistently mapped. | |
| ItemsCount | Gets the number of items of type (ItemType) in this buffer. | |
| ItemType | Gets the type of each item in this buffer. | |
| QueueFamilies | Gets the Queue families that can be used for this buffer. |