 |
GpuBuffer(VulkanDevice, Buffer, VulkanMemoryInfo, UInt32, Type, Int32, QueueFlags, Boolean, String) Constructor |
Constructor
Namespace: Ab4d.SharpEngine.CoreAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
Syntaxpublic GpuBuffer(
VulkanDevice vulkanDevice,
Buffer buffer,
VulkanMemoryInfo gpuMemory,
uint bufferSize,
Type itemType,
int itemsCount,
QueueFlags queueFamilies = QueueFlags.Graphics,
bool isPersistentlyMapped = false,
string? name = null
)
Parameters
- vulkanDevice VulkanDevice
- vulkanDevice
- buffer Buffer
- buffer
- gpuMemory VulkanMemoryInfo
- gpuMemory
- bufferSize UInt32
- size that was used to create the buffer (this may be smaller than the size of actually allocated memory). Usually this is equal to itemsCount * Unsafe.SizeOf<T>()
- itemType Type
- type of each item in this buffer
- itemsCount Int32
- number of items of itemType in this buffer
- queueFamilies QueueFlags (Optional)
- queueFamilies (QueueFlags.Graphics by default)
- isPersistentlyMapped Boolean (Optional)
- isPersistentlyMapped (false by default)
- name String (Optional)
- name
Exceptions
See Also