|  | 
| VulkanDeviceCreateBufferAsyncT(T, Int32, BufferUsageFlags, Boolean, Boolean, String) Method | 
            CreateBufferAsync method creates the GpuBuffer and uploads the specified data in the background thread.
            
Namespace: Ab4d.SharpEngine.VulkanAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
 Syntax
Syntaxpublic Task<GpuBuffer> CreateBufferAsync<T>(
	T[] data,
	int dataItemsCount,
	BufferUsageFlags usage,
	bool isDeviceLocal = true,
	bool canUseDeviceLocalHostVisibleMemory = true,
	string? name = null
)
where T : struct, new()
Parameters
- data  T
- data array
- dataItemsCount  Int32
- number of items from the data array to copy to buffer
- usage  BufferUsageFlags
- usage of the buffer, for example VertexBuffer or IndexBuffer
- isDeviceLocal  Boolean  (Optional)
- true (by default) when the buffer is created in device local memory
- canUseDeviceLocalHostVisibleMemory  Boolean  (Optional)
- when true (by default) then DeviceLocal and HostVisible memory is used when available
- name  String  (Optional)
- optional name of the buffer
Type Parameters
- T
- type of data
Return Value
TaskGpuBufferCreated GpuBuffer
 See Also
See Also