# vertexCount

> The amount of vertices from a vertex buffer that defines a ray tracing geometry.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.Rendering](/engine/6000.5/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public int vertexCount { readonly get; set; }
```

### Remarks

Together with [RayTracingSubGeometryDesc.vertexStart](/engine/6000.5/script-reference/unityengine/rendering/raytracingsubgeometrydesc/vertexstart.md) 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](/engine/6000.5/script-reference/unityengine/rendering/raytracingsubgeometrydesc/indexstart.md) and [RayTracingSubGeometryDesc.indexCount](/engine/6000.5/script-reference/unityengine/rendering/raytracingsubgeometrydesc/indexcount.md) define the sub-geometry range.
