# vertexCount

> The amount of vertices from RayTracingGeometryInstanceConfig.vertexBuffer that defines this ray tracing geometry instance.

## Definition

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

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

### Remarks

Use -1 to instruct Unity to use all the vertices from [RayTracingGeometryInstanceConfig.vertexBuffer](/engine/6000.7/script-reference/unityengine/rendering/raytracinggeometryinstanceconfig/vertexbuffer.md) when building the acceleration structure associated with the ray tracing instance.
