Click or drag to resize
Ab4d.SharpEngine logo

TriangleMeshTCreateGpuBuffersAsync(VulkanDevice) Method

Asynchronously creates the vertex and index buffers for this mesh in the background thread. To also calculate the BoundingBox and OctTree call an overload of this method that takes Scene instead of GpuDevice.

Namespace: Ab4d.SharpEngine.Meshes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax
C#
public Task CreateGpuBuffersAsync(
	VulkanDevice gpuDevice
)

Parameters

gpuDevice  VulkanDevice
GpuDevice.

Return Value

Task
A Task that represents the asynchronous operation.
Exceptions
ExceptionCondition
ExceptionThrown when the mesh is using a custom vertex or index buffer, or when the GPU device is unexpectedly null.
See Also