Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


vertexCount

The amount of vertices from a vertex buffer that defines a ray tracing geometry.
Read time 1 minuteLast updated 9 days ago

Definition

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.