 |
GpuBuffer(VulkanDevice, Buffer, VulkanMemoryInfo, UInt32, Type, Int32, QueueFlags, Boolean, String) Constructor |
Constructor
Namespace: Ab4d.SharpEngine.CoreAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
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| Exception | Condition |
|---|
| ArgumentNullException | |
| ArgumentException | |
See Also