 |
CustomMesh Constructor |
Constructor
Namespace: Ab4d.SharpEngine.MeshesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntaxpublic CustomMesh(
GpuBuffer vertexBuffer,
GpuBuffer? indexBuffer,
int vertexCount,
int indexCount,
BoundingBox boundingBox,
VertexBufferDescription? vertexBufferDescription,
int indexOffset = 0,
PrimitiveTopology primitiveTopology = PrimitiveTopology.TriangleList,
IndexType indexBufferType = IndexType.Uint32,
string? name = null
)
Parameters
- vertexBuffer GpuBuffer
- vertexBuffer as GpuBuffer
- indexBuffer GpuBuffer
- optional indexBuffer as GpuBuffer
- vertexCount Int32
- number of vertices
- indexCount Int32
- number of triangle indices in the indexBuffer
- boundingBox BoundingBox
- BoundingBox
- vertexBufferDescription VertexBufferDescription
- VertexBufferDescription GpuDevice.(use VertexBufferDescriptionsManager to get common VertexBufferDescriptions)
- indexOffset Int32 (Optional)
- custom index offset (0 by default) that specifies an offset in the index buffer where data for this mesh begins
- primitiveTopology PrimitiveTopology (Optional)
- PrimitiveTopology (TriangleList by default)
- indexBufferType IndexType (Optional)
- type of index buffer (Uint32 by default)
- name String (Optional)
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Meshes.CustomMesh.#ctor(Ab4d.SharpEngine.Core.GpuBuffer,Ab4d.SharpEngine.Core.GpuBuffer,System.Int32,System.Int32,Ab4d.SharpEngine.Common.BoundingBox,Ab4d.SharpEngine.Utilities.VertexBufferDescription,System.Int32,Ab4d.Vulkan.PrimitiveTopology,Ab4d.Vulkan.IndexType,System.String)"]
See Also