 |
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.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
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