vertexCount
The amount of vertices from a vertex buffer that defines a ray tracing geometry.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public int vertexCount { readonly get; set; }
Remarks
Together with RayTracingSubGeometryDesc.vertexStart it defines the range of vertices that are referenced by the indices from an index buffer. In usual scenarios, the value of this field is the total amount of vertices in the vertex buffer while RayTracingSubGeometryDesc.indexStart and RayTracingSubGeometryDesc.indexCount define the sub-geometry range.