 |
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.MeshesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntaxpublic Task CreateGpuBuffersAsync(
VulkanDevice gpuDevice
)
Parameters
- gpuDevice VulkanDevice
- GpuDevice.
Return Value
TaskA
Task that represents the asynchronous operation.
Exceptions| Exception | Condition |
|---|
| Exception | Thrown when the mesh is using a custom vertex or index buffer, or when the GPU device is unexpectedly null. |
See Also