Click or drag to resize
Ab4d.SharpEngine logo

GpuBuffer(VulkanDevice, Buffer, VulkanMemoryInfo, UInt32, Type, Int32, QueueFlags, Boolean, String) Constructor

Constructor

Namespace: Ab4d.SharpEngine.Core
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public 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
ExceptionCondition
ArgumentNullException
ArgumentException
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Core.GpuBuffer.#ctor(Ab4d.SharpEngine.Vulkan.VulkanDevice,Ab4d.Vulkan.Buffer,Ab4d.SharpEngine.Common.VulkanMemoryInfo,System.UInt32,System.Type,System.Int32,Ab4d.Vulkan.QueueFlags,System.Boolean,System.String)"]

See Also